jolly-memory-78838
02/12/2019, 6:28 PMrm -rf .pants.d/
run a test goal with the error in pytest, update pants.ini to pin the old version. Then run pants test goal again with --cache-test-pytest-ignore
it throws the error.jolly-memory-78838
02/12/2019, 6:29 PMrm -rf .pants.d/
then run the test goal again with the pinned pytest version it passesenough-analyst-54434
02/12/2019, 6:29 PMjolly-memory-78838
02/12/2019, 6:29 PMenough-analyst-54434
02/12/2019, 6:30 PMelegant-appointment-76597
02/12/2019, 10:49 PMjvenus-signal-mbp13:pytest jvenus$ git diff
diff --git a/setup.py b/setup.py
index 908abb18..bb91fb35 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,7 @@ def main():
"six>=1.10.0",
"setuptools",
"attrs>=17.4.0",
- "more-itertools>=4.0.0",
+ "more-itertools==5.0.0",
"atomicwrites>=1.0",
]
then I pinned the version in pants.ini
diff --git a/pants.ini b/pants.ini
index 8bd5ad66..a74ace51 100644
--- a/pants.ini
+++ b/pants.ini
@@ -193,6 +193,13 @@ options: [
[scala-platform]
version: 2.12
+[pytest]
+requirements: pytest==3.6.5
+timeout_requirements: pytest-timeout>=1.2,<1.3
+cov_requirements: pytest-cov>=2.4,<2.5
+unittest2_requirements: unittest2>=0.6.0,<=1.9.0
+