Skip to content

Commit aeed581

Browse files
authored
Merge pull request #171 from kinde-oss/deps/pytest-9-conservative-upgrade
chore(deps): upgrade pytest to >=9.0.3 with Python 3.9 compatibility
2 parents 7bf9bc6 + 1ce0a12 commit aeed581

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ flask = [
4848
"flask >=3.0.0, <4.0.0",
4949
]
5050
dev = [
51-
"pytest >=7.4.0",
51+
# pytest 9 requires Python >=3.10; pytest 9.0.3 fixes CVE-2025-71176
52+
"pytest >=9.0.3; python_version >= '3.10'",
53+
"pytest >=7.4.0,<9; python_version < '3.10'",
5254
"pytest-cov >=4.1.0",
5355
"pytest-django >=4.5.2",
5456
"mypy >=1.5.0",
@@ -82,7 +84,11 @@ zip-safe = false
8284
"kinde_flask" = ["**/*.py", "**/*.json", "**/*.yaml", "**/*.yml"]
8385

8486
[tool.poetry.dev-dependencies]
85-
pytest = "^7.4.0"
87+
# pytest 9 requires Python >=3.10; pytest 9.0.3 fixes CVE-2025-71176
88+
pytest = [
89+
{version = ">=7.4.0,<9", python = "~3.9"},
90+
{version = "^9.0.3", python = ">=3.10"}
91+
]
8692
pytest-cov = "^7.0.0"
8793
coverage = ">=7.10.6"
8894
pytest-django = "^4.5.2"
@@ -95,4 +101,3 @@ pytest-timeout = "^2.2.0"
95101
black = "^26.0.0"
96102
flake8 = "^7.0.0"
97103
isort = "^8.0.0"
98-

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ certifi>=2026.1.4
2121
pydantic>=2.0.0,<3.0.0
2222

2323
# Development dependencies
24-
pytest>=7.4.0
24+
# pytest 9 requires Python >=3.10; keep <9 for Python 3.9 (pytest 9 dropped 3.9 support)
25+
# CVE-2025-71176 is fixed in 9.0.3 (only available for Python >=3.10)
26+
pytest>=9.0.3; python_version >= "3.10"
27+
pytest>=7.4.0,<9; python_version < "3.10"
2528
pytest-django>=4.5.2
2629
pytest-asyncio>=0.21.1
2730
pytest-cov>=7.0.0

0 commit comments

Comments
 (0)