Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-12-13 22:57:24 +0300
committerStephen Finucane <stephen@that.guru>2017-12-13 22:59:45 +0300
commita5ef67b96a7c8aa362b2358766fba9150904e34d (patch)
tree7c4951f5742526149e6a9c228acdbac7c17fb1c9 /setup.py
parent809388d8366c845e921a5b679c8d3e90d545acc9 (diff)
setup: Install mock for Python 3 too
'mock' is part of the standard library in Python 3 since Python 3.3. However, it's found in 'unittest.mock' - not 'mock'. We should install the version for PyPi in all cases to minimize differences between the two. When Python 2.7 support is dropped, we can consider switching to the standard library version. Signed-off-by: Stephen Finucane <stephen@that.guru> Fixes #4284
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index a4dd6b078..10a513166 100644
--- a/setup.py
+++ b/setup.py
@@ -68,13 +68,13 @@ extras_require = {
'whoosh>=2.0',
],
'test': [
+ 'mock',
'pytest',
'pytest-cov',
'html5lib',
],
'test:python_version<"3"': [
'enum34',
- 'mock',
],
'test:python_version>="3"': [
'mypy',