Skip to content

Commit 6bb044b

Browse files
Skip segfaulting PyQt6 test on 3.12
1 parent eddd28b commit 6bb044b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/brain/test_qt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
from astroid import Uninferable, extract_node
1010
from astroid.bases import UnboundMethod
11+
from astroid.const import PY312_PLUS
1112
from astroid.manager import AstroidManager
1213
from astroid.nodes import FunctionDef
1314

1415
HAS_PYQT6 = find_spec("PyQt6")
1516

1617

1718
@pytest.mark.skipif(HAS_PYQT6 is None, reason="These tests require the PyQt6 library.")
19+
# TODO: enable for Python 3.12 as soon as PyQt6 release is compatible
20+
@pytest.mark.skipif(PY312_PLUS, reason="This test was segfaulting with Python 3.12.")
1821
class TestBrainQt:
1922
AstroidManager.brain["extension_package_whitelist"] = {"PyQt6"}
2023

0 commit comments

Comments
 (0)