Skip to content

Commit

Permalink
Skip segfaulting PyQt6 test on 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jun 22, 2023
1 parent ec5899b commit 11db9e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/brain/test_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@

from astroid import Uninferable, extract_node
from astroid.bases import UnboundMethod
from astroid.const import PY312_PLUS
from astroid.manager import AstroidManager
from astroid.nodes import FunctionDef

HAS_PYQT6 = find_spec("PyQt6")


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

Expand Down

0 comments on commit 11db9e2

Please sign in to comment.