Skip to content

Commit 10cc7cc

Browse files
authored
tests: allow pytest 7.0+ instead of 7.2+ (#200)
This might help a little with packaging such as in #196. Signed-off-by: Henry Schreiner <[email protected]>
1 parent 0d918bd commit 10cc7cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test = [
5757
"pathspec >=0.10.1",
5858
"pybind11",
5959
"pyproject-metadata >=0.5",
60-
"pytest >=7.2",
60+
"pytest >=7.0", # 7.2+ recommended for better tracebacks with ExceptionGroup
6161
"pytest-subprocess >=1.5",
6262
"setuptools",
6363
"wheel",
@@ -68,7 +68,7 @@ cov = [
6868
dev = [
6969
"build",
7070
"cattrs >=22.2.0",
71-
"pytest >=7.2",
71+
"pytest >=7.0",
7272
"pytest-subprocess",
7373
"rich",
7474
]
@@ -94,7 +94,7 @@ build.hooks.vcs.version-file = "src/scikit_build_core/_version.py"
9494

9595

9696
[tool.pytest.ini_options]
97-
minversion = "7.2"
97+
minversion = "7.0"
9898
addopts = ["-ra", "--strict-markers", "--strict-config"]
9999
xfail_strict = true
100100
filterwarnings = [

tests/constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
typing-extensions==3.10.0.0
22
cattrs==22.2.0
3-
pytest==7.2.0
3+
pytest==7.0.0
44
tomli==1.1.0
55
packaging==20.9
66
importlib-resources==1.3.0

0 commit comments

Comments
 (0)