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 6
6
from pathlib import Path
7
7
8
8
import pytest
9
- import tomllib
10
9
from packaging .requirements import Requirement
11
10
from packaging .version import parse
12
11
13
12
import imblearn
14
13
15
14
16
15
@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" ,
18
18
)
19
19
def test_min_dependencies_readme ():
20
+ # local import to not import the file with Python < 3.11
21
+ import tomllib
22
+
20
23
# Test that the minimum dependencies in the README.rst file are
21
24
# consistent with the minimum dependencies defined at the file:
22
25
# pyproject.toml
You can’t perform that action at this time.
0 commit comments