Skip to content

Commit 6389e03

Browse files
authored
Merge pull request #103 from nicoddemus/mock-req-101
Fix mock requirements for py2
2 parents d2456dd + 83a4a91 commit 6389e03

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
1.7.1
2+
-----
3+
4+
* Fix ``mock`` requirements in Python 2. Thanks `@ghisvail`_ for the report.
5+
6+
.. _@ghisvail: https://github.com/ghisvail
7+
.. _#101: https://github.com/pytest-dev/pytest-mock/issues/101
8+
19
1.7.0
210
-----
311

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
1212
install_requires=[
1313
'pytest>=2.7',
14+
'mock;python_version<"3.0"',
1415
],
15-
extras_require={
16-
':python_version=="2.7"': ['mock'],
17-
},
1816
use_scm_version={'write_to': '_pytest_mock_version.py'},
1917
setup_requires=['setuptools_scm'],
2018
url='https://github.com/pytest-dev/pytest-mock/',

0 commit comments

Comments
 (0)