Skip to content

Commit 5b665e7

Browse files
Skip test_numpy_distutils on 3.12+
1 parent a93018e commit 5b665e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_regrtest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from astroid import MANAGER, Instance, bases, manager, nodes, parse, test_utils
1313
from astroid.builder import AstroidBuilder, _extract_single_node, extract_node
14+
from astroid.const import PY312_PLUS
1415
from astroid.context import InferenceContext
1516
from astroid.exceptions import InferenceError
1617
from astroid.raw_building import build_module
@@ -100,7 +101,7 @@ def test_numpy_crash(self):
100101
inferred = callfunc.inferred()
101102
self.assertEqual(len(inferred), 1)
102103

103-
@unittest.skipUnless(HAS_NUMPY, "Needs numpy")
104+
@unittest.skipUnless(HAS_NUMPY and not PY312_PLUS, "Needs numpy and < Python 3.12")
104105
def test_numpy_distutils(self):
105106
"""Special handling of virtualenv's patching of distutils shouldn't interfere
106107
with numpy.distutils.

0 commit comments

Comments
 (0)