aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/enum_test.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2023-02-08 18:04:52 +0100
committerChristian Tismer <tismer@stackless.com>2023-02-09 17:12:05 +0100
commit5abd98b6552d50f28c334a7bdb80a41065421e97 (patch)
tree99345ad0fc8c46ed5fae98cc45e2828ba489427c /sources/pyside6/tests/pysidetest/enum_test.py
parenta1f368a504f1c465cdf85dbc137db4880a09738a (diff)
NoGIL: Disable opcode tests in enum_test.py
The enum_test.py uses opcode inspection to make sure that changed opcodes hopefully trigger an error. For the immature NoGIL Python version, this makes no sense. Task-number: PYSIDE-2221 Change-Id: If101f49f97c5120a84672581d24336999718611a Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/enum_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/enum_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/enum_test.py b/sources/pyside6/tests/pysidetest/enum_test.py
index 158faf37c..0036eb764 100644
--- a/sources/pyside6/tests/pysidetest/enum_test.py
+++ b/sources/pyside6/tests/pysidetest/enum_test.py
@@ -68,6 +68,8 @@ class InvestigateOpcodesTest(unittest.TestCase):
res.append((ops[idx - 1][0], ops[idx][1] - ops[idx - 1][1]))
return sorted(res, key=lambda x: (x[1], x[0]))
+ _sin = sys.implementation.name
+ @unittest.skipIf(hasattr(sys.flags, "nogil"), f"{_sin} has different opcodes")
def testByteCode(self):
# opname, opcode, arg
result_1 = [('LOAD_GLOBAL', 116, 0),