File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ import sys
34from pathlib import Path
45from 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)
3236def test_valid_schemas_files (filepath : Path ) -> None :
3337 api = pytest .importorskip ("validate_pyproject.api" )
You can’t perform that action at this time.
0 commit comments