]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Pin pytest *before* 3.9.1 totally
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Oct 2018 13:09:32 +0000 (09:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Oct 2018 13:09:32 +0000 (09:09 -0400)
Unfortunately they have released
3.9.2 before fixing issue 4181, which means we will have to
re-pin a third time after they eventually release with
a fix

Change-Id: I9b6fab1b535f883a035f002264c41ad0166790ab
Reference: https://github.com/pytest-dev/pytest/issues/4181

setup.py
tox.ini

index b9e999f0d18f6fe26ecf23850612a3fbb072a04c..ab285d7f47749a3e0d45a8cc262442098ca52202 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -139,7 +139,7 @@ def run_setup(with_cext):
         package_dir={'': 'lib'},
         license="MIT License",
         cmdclass=cmdclass,
-        tests_require=['pytest>=2.5.2,!=3.9.1', 'mock', 'pytest-xdist'],
+        tests_require=['pytest>=2.5.2,<3.9.1', 'mock', 'pytest-xdist'],
         long_description=readme,
         python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
         classifiers=[
diff --git a/tox.ini b/tox.ini
index a1a4c490436dd53c879f563b60f37c1f537fbb5a..9cab8c1242328272021f363e87d1d14e9595b37a 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ install_command=python -m pip install {env:TOX_PIP_OPTS:} {opts} {packages}
 usedevelop=
      cov: True
 
-deps=pytest!=3.9.1
+deps=pytest<3.9.1
      pytest-xdist
      mock
      # needed only for correct profiling results