diff options
| author | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-11-04 11:47:41 +0100 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-11-05 13:28:20 +0000 |
| commit | 0b7cedd3f01cd6fb97aa724f0009236d933892b5 (patch) | |
| tree | 16040e22737d4d0a79852700f460905b33ed24dd /sources/pyside6/tests/pysidetest/property_python_test.py | |
| parent | 1fc1012c252a738c25cb11a3f7764b7139762bed (diff) | |
Remove traces of Python 2: tests and flake fixes
Addressing a few comments from tests that were related
to the Python 2 compatibility.
Pick-to: 6.8
Change-Id: I88c614549cfb91f879fe3e0d82a6988362e0ce19
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/property_python_test.py')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/property_python_test.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sources/pyside6/tests/pysidetest/property_python_test.py b/sources/pyside6/tests/pysidetest/property_python_test.py index 31c1f40c7..e26f07bb9 100644 --- a/sources/pyside6/tests/pysidetest/property_python_test.py +++ b/sources/pyside6/tests/pysidetest/property_python_test.py @@ -27,9 +27,6 @@ init_test_paths(False) from PySide6.QtCore import Property, QObject -# This are the original imports. -import sys -import unittest has_test = False try: from test import support @@ -203,7 +200,7 @@ class PropertyTests(unittest.TestCase): sub.__class__.spam.__doc__ = 'Spam' self.assertEqual(sub.__class__.spam.__doc__, 'Spam') - if has_test: # This test has no support in Python 2 + if has_test: @support.refcount_test def test_refleaks_in___init__(self): gettotalrefcount = support.get_attribute(sys, 'gettotalrefcount') |
