Skip to content

Commit a51012c

Browse files
committed
tests: skip metadata check on 3.7
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 08178db commit a51012c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/test_schema.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import sys
34
from pathlib import Path
45
from typing import Any
56

@@ -22,12 +23,15 @@ def test_compare_schemas():
2223
assert generate_skbuild_schema() == get_skbuild_schema()
2324

2425

26+
SCHEMAS = [
27+
*DIR.parent.joinpath("docs/examples").glob("**/pyproject.toml"),
28+
*DIR.joinpath("packages").glob("**/pyproject.toml"),
29+
]
30+
31+
2532
@pytest.mark.parametrize(
2633
"filepath",
27-
[
28-
*DIR.parent.joinpath("docs/examples").glob("**/pyproject.toml"),
29-
*DIR.joinpath("packages").glob("**/pyproject.toml"),
30-
],
34+
[s for s in SCHEMAS if sys.version_info >= (3, 8) or "pep639" not in str(s)],
3135
)
3236
def test_valid_schemas_files(filepath: Path) -> None:
3337
api = pytest.importorskip("validate_pyproject.api")

0 commit comments

Comments
 (0)