From 44e31c2de6dffdd65cc4eb589b98b6f6f673fd43 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Sun, 13 Sep 2020 19:49:18 +0200 Subject: [PATCH] Remove references to mock backport since mamba only supports Python 3 --- Pipfile | 1 - setup.py | 2 +- spec/mock_patch_example_spec.py | 5 +---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Pipfile b/Pipfile index 8689ba6..7cd18e7 100644 --- a/Pipfile +++ b/Pipfile @@ -6,7 +6,6 @@ name = "pypi" [dev-packages] expects = ">=0.8.0" doublex-expects = ">=0.7.0rc2" -mock = ">=2.0.0" sphinx = ">=1.6.5" sphinx-autobuild = ">=0.7.1" e1839a8 = {editable = true,path = "."} diff --git a/setup.py b/setup.py index 5041e5e..ff6fd22 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ include_package_data=True, zip_safe=False, install_requires=['clint', 'coverage'], - test_require=['expect', 'doublex', 'doublex-expects', 'mock'], + test_require=['expect', 'doublex', 'doublex-expects'], entry_points={ 'console_scripts': [ 'mamba = mamba.cli:main' diff --git a/spec/mock_patch_example_spec.py b/spec/mock_patch_example_spec.py index 5527819..156c143 100644 --- a/spec/mock_patch_example_spec.py +++ b/spec/mock_patch_example_spec.py @@ -1,8 +1,5 @@ from mamba import description, context, it -try: - from unittest.mock import patch -except ImportError: - from mock import patch +from unittest.mock import patch from expects import expect, be