Browse Source

env: add upper version constraint for pytest to keep compatibility with python3.5

Fabian Peter Hammerle 3 years ago
parent
commit
e28ca1ced4
2 changed files with 4 additions and 2 deletions
  1. 3 1
      Pipfile
  2. 1 1
      Pipfile.lock

+ 3 - 1
Pipfile

@@ -13,7 +13,7 @@ black = {version = "==20.8b1", markers = "python_version >= '3.6'"}
 mypy = "*"
 pylint = "*"
 pylint-import-requirements = "*"
-pytest = "*"
+#pytest = "*"
 pytest-cov = "*"
 
 # python3.5 compatibility
@@ -22,6 +22,8 @@ importlib-metadata = "<3"
 isort = "<5"
 # workaround https://github.com/pytest-dev/pytest/issues/3953
 pathlib2 = {version = "*", markers="python_version < '3.6'"}
+# https://github.com/pytest-dev/pytest/commit/179f4326df2b644f0ab73f78e4770dafcbdcd89f#diff-fa602a8a75dc9dcc92261bac5f533c2a85e34fcceaff63b3a3a81d9acde2fc52R52
+pytest = "<6.2"
 # https://github.com/jaraco/zipp/commit/05a3c52b4d41690e0471a2e283cffb500dc0329a
 zipp = "<2"
 

+ 1 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "1d94dac93d9877f0c605ff14838858176d2ad2709d174d2cab0803a587771a2e"
+            "sha256": "ca0da756931c8e63419a02f9127c6a63afd965deb1865a8635a569e5f9746368"
         },
         "pipfile-spec": 6,
         "requires": {