Browse Source

ref: upgrade pytest to 7.x (#36076)

only took about 50 PRs to get warning clean -- but I think we're there
now \o/
anthony sottile 2 years ago
parent
commit
7ebb8f9c86

+ 2 - 2
requirements-dev-frozen.txt

@@ -118,11 +118,11 @@ pyopenssl==22.0.0
 pyparsing==3.0.9
 pyrsistent==0.18.1
 pysocks==1.7.1
-pytest==6.1.2
+pytest==7.1.2
 pytest-cov==3.0.0
 pytest-django==4.4.0
 pytest-forked==1.4.0
-pytest-rerunfailures==9.1.1
+pytest-rerunfailures==10.2
 pytest-sentry==0.1.9
 pytest-xdist==2.4.0
 python-dateutil==2.8.1

+ 2 - 2
requirements-dev-only-frozen.txt

@@ -52,11 +52,11 @@ pycodestyle==2.9.0
 pyflakes==2.5.0
 pyparsing==3.0.9
 pyrsistent==0.18.1
-pytest==6.1.2
+pytest==7.1.2
 pytest-cov==3.0.0
 pytest-django==4.4.0
 pytest-forked==1.4.0
-pytest-rerunfailures==9.1.1
+pytest-rerunfailures==10.2
 pytest-sentry==0.1.9
 pytest-xdist==2.4.0
 python-dateutil==2.8.2

+ 2 - 2
requirements-dev.txt

@@ -5,10 +5,10 @@ exam>=0.10.6
 freezegun>=1.1.0
 honcho>=1.1.0
 openapi-core>=0.14.2
-pytest>=6.1.0
+pytest>=7
 pytest-cov>=3.0.0
 pytest-django>=4.4.0
-pytest-rerunfailures>=9.1.1
+pytest-rerunfailures>=10
 pytest-sentry>=0.1.9
 pytest-xdist
 responses>=0.21.0

+ 1 - 0
src/sentry/utils/pytest/relay.py

@@ -52,6 +52,7 @@ def relay_server_setup(live_server, tmpdir_factory):
         datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S_%f")
     )
     config_path = tmpdir_factory.mktemp(prefix)
+    config_path.chmod(0o755)
     config_path = str(config_path)
 
     parsed_live_server_url = urlparse(live_server.url)