From 5683880de63b2ea8827d6ac62fc100103726856e Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Fri, 17 Jun 2016 12:51:09 +0200 Subject: [PATCH] bugfix: old mock module does not mock open properly --- .travis.yml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fdf1d88b..85b1395fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ install: for pv in "2.7" "3.4" "3.5"; do source ~/virtualenv/python${pv}/bin/activate # explicitly install all needed python modules to cache them - for p in '-r requirements.txt' 'behave codacy-coverage coverage coveralls flake8 mock pytest-cov pytest'; do + for p in '-r requirements.txt' 'behave codacy-coverage coverage coveralls flake8 mock>=2.0.0 pytest-cov pytest'; do pip install $p done done diff --git a/setup.py b/setup.py index d285bbd49..8a2b2bfb6 100644 --- a/setup.py +++ b/setup.py @@ -147,7 +147,7 @@ def setup_package(): install_requires=install_reqs, setup_requires=['flake8'], cmdclass=cmdclass, - tests_require=['mock', 'pytest-cov', 'pytest'], + tests_require=['mock>=2.0.0', 'pytest-cov', 'pytest'], command_options=command_options, entry_points={'console_scripts': CONSOLE_SCRIPTS}, )