aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/snake_case_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/pysidetest/snake_case_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/snake_case_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/pyside6/tests/pysidetest/snake_case_test.py b/sources/pyside6/tests/pysidetest/snake_case_test.py
index aaa3d3f2a..14e035773 100644
--- a/sources/pyside6/tests/pysidetest/snake_case_test.py
+++ b/sources/pyside6/tests/pysidetest/snake_case_test.py
@@ -13,14 +13,17 @@ init_test_paths(False)
"""
PYSIDE-2029: Tests that snake_case is isolated from imported modules
"""
+is_pypy = hasattr(sys, "pypy_version_info")
from PySide6.QtCore import QSize
from PySide6.QtWidgets import QWidget, QSpinBox
-from __feature__ import snake_case
+if not is_pypy:
+ from __feature__ import snake_case
from helper.usesqapplication import UsesQApplication
import snake_case_sub
+@unittest.skipIf(is_pypy, "__feature__ cannot yet be used with PyPy")
class SnakeCaseNoPropagateTest(UsesQApplication):
def testSnakeCase(self):
@@ -30,5 +33,6 @@ class SnakeCaseNoPropagateTest(UsesQApplication):
snake_case_sub.test_no_snake_case()
+
if __name__ == '__main__':
unittest.main()