]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
try pytest 9
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Nov 2025 14:55:07 +0000 (09:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Nov 2025 18:48:58 +0000 (13:48 -0500)
moves reqs to pytest<10

Change-Id: I2b026e1d2803e4e0d29a597e33545fe330422d09

noxfile.py
pyproject.toml
tox.ini

index be7fcff3ae2bb7ed221388d61fa36ff0cc716fd8..0c55c3bd0cda10b9e1aed9cdab416e383834ee49 100644 (file)
@@ -250,7 +250,9 @@ def _tests(
         if not timing_intensive:
             includes_excludes["m"].append("not timing_intensive")
 
-    cmd = ["python", "-m", "pytest"]
+    # add test/ argument so that we avoid
+    # https://github.com/pytest-dev/pytest/issues/13913
+    cmd = ["python", "-m", "pytest", "test"]
 
     cmd.extend(os.environ.get("TOX_WORKERS", "-n4").split())
 
@@ -338,7 +340,7 @@ def test_mypy(session: nox.Session) -> None:
         ["mypy"],
     )
 
-    cmd = ["pytest", "-m", "mypy"]
+    cmd = ["pytest", "-m", "mypy", "test"]
 
     session.run(*cmd, *posargs)
 
index c774afea65bcf3e73a8dbf25a4baeaf6e7af6835..c109841cbd56b804f6076c250e25a8f326db05d4 100644 (file)
@@ -101,7 +101,7 @@ postgresql_psycopgbinary = ["sqlalchemy[postgresql-psycopgbinary]"]
 
 [dependency-groups]
 tests = [
-    "pytest>=7.0.0,<8.4",
+    "pytest>=7.0.0,<10",
     "pytest-xdist",
 ]
 
@@ -191,7 +191,7 @@ mypy = [
     {include-group = "tests-greenlet"},
     "mypy>=1.16.0",
     "nox",  # because we check noxfile.py
-    "pytest>8,<8.4",  # alembic/testing imports pytest
+    "pytest>8,<10",  # alembic/testing imports pytest
     "types-greenlet",
 ]
 
diff --git a/tox.ini b/tox.ini
index 9139b5b3aa752a324e43183a002d22ce004a2da0..a20bf25642bfeeda659f3243eb48eae636673a5f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -66,7 +66,7 @@ deps=
      # if newer versions will fix the segfault or not
      mysql: mariadb<1.1.13
 
-     pytest>=7.0.0,<8.4
+     pytest>=7.0.0,<10
      # tracked by https://github.com/pytest-dev/pytest-xdist/issues/907
      pytest-xdist!=3.3.0
 
@@ -213,7 +213,7 @@ extras =
 
 [testenv:mypy]
 deps=
-     pytest>=7.0.0rc1,<8.4
+     pytest>=7.0.0rc1,<10
      pytest-xdist
      greenlet >= 1
      mypy >= 1.17