aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/version_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-27 08:22:07 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-27 15:30:14 +0200
commit70ffe0b5136cfce75c94fa09cd6070b7270f684d (patch)
tree4b22b5d9d7b055340a723d41e2f88fcac212f143 /sources/pyside6/tests/pysidetest/version_test.py
parent8245dd6356dbb0124a7477b16f19e5f031074f85 (diff)
Tests: Use per-class imports
Change-Id: I6dac1f54152fecab7af6831bc3c813a016408aae Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/version_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/version_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/pyside6/tests/pysidetest/version_test.py b/sources/pyside6/tests/pysidetest/version_test.py
index 15e126c1d..aba4da9c0 100644
--- a/sources/pyside6/tests/pysidetest/version_test.py
+++ b/sources/pyside6/tests/pysidetest/version_test.py
@@ -37,7 +37,8 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)
-from PySide6 import __version_info__, __version__, QtCore
+from PySide6 import __version_info__, __version__
+
class CheckForVariablesTest(unittest.TestCase):
def testVesions(self):
@@ -47,8 +48,8 @@ class CheckForVariablesTest(unittest.TestCase):
self.assertTrue(version_tuple < (99, 99, 99))
self.assertTrue(__version__)
- self.assertTrue(QtCore.__version_info__ >= (4, 5, 0))
- self.assertTrue(QtCore.__version__)
+ self.assertTrue(__version_info__ >= (4, 5, 0))
+ self.assertTrue(__version__)
if __name__ == '__main__':
unittest.main()