From 5cb778dfa7c291a5f24be739fd7e262f07f7e2c2 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Jul 2020 01:28:03 +0200 Subject: [PATCH] Last version of pytest for pypy is 4.6.11; Also latest version pytest-cov and pytest-asyncio are not compatible with latest pytest. https://travis-ci.org/github/syrusakbary/promise/jobs/708528307 Could not find a version that satisfies the requirement pytest>=5.4.3 (from promise==2.3) (from versions: 2.0.0, ......... 4.6.10, 4.6.11) https://travis-ci.org/github/syrusakbary/promise/jobs/708523881 E AttributeError: type object 'Function' has no attribute 'from_parent' https://travis-ci.org/github/syrusakbary/promise/jobs/708735234 pytest-cov 2.10.0 has requirement pytest>=4.6, but you'll have pytest 4.3.1 which is incompatible. --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 9c13695..c3ae715 100644 --- a/setup.py +++ b/setup.py @@ -14,15 +14,15 @@ IS_PY3 = sys.hexversion >= 0x03000000 tests_require = [ - "pytest>=2.7.3", - "pytest-cov", + "pytest>4.1.0,<=4.6.11", + "pytest-cov<2.10.0", "coveralls", "futures", "pytest-benchmark", "mock", ] if IS_PY3: - tests_require += ["pytest-asyncio"] + tests_require += ["pytest-asyncio<0.11.0"] setup(