File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 66from pathlib import Path
77
88import pytest
9- import tomllib
109from packaging .requirements import Requirement
1110from packaging .version import parse
1211
1312import imblearn
1413
1514
1615@pytest .mark .skipif (
17- platform .system () == "Windows" , reason = "This test is enough on unix system"
16+ platform .system () == "Windows" or parse (platform .python_version ()) < parse ("3.11" ),
17+ reason = "This test is enough on unix system and requires Python >= 3.11" ,
1818)
1919def test_min_dependencies_readme ():
20+ # local import to not import the file with Python < 3.11
21+ import tomllib
22+
2023 # Test that the minimum dependencies in the README.rst file are
2124 # consistent with the minimum dependencies defined at the file:
2225 # pyproject.toml
You can’t perform that action at this time.
0 commit comments