diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-08-17 07:41:37 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-08-17 07:41:37 +0200 |
| commit | f440ebfd838d0b754bbba38fbbd2ccf5318f7347 (patch) | |
| tree | 53d1431ceb7d64826a86f812c4b9a4fe3310f846 /sources/pyside2/tests | |
| parent | 7a1fe1519159a8bcaa61aec35c1d942ed024bf73 (diff) | |
| parent | 58a0d36d9271e91bd21272a9fe3b736dd90db58d (diff) | |
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: Icee2cd5a37181070d8ef50e7143868d4f126cea5
Diffstat (limited to 'sources/pyside2/tests')
| -rw-r--r-- | sources/pyside2/tests/QtCore/multiple_feature_test.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sources/pyside2/tests/QtCore/multiple_feature_test.py b/sources/pyside2/tests/QtCore/multiple_feature_test.py index 26488326c..351090382 100644 --- a/sources/pyside2/tests/QtCore/multiple_feature_test.py +++ b/sources/pyside2/tests/QtCore/multiple_feature_test.py @@ -48,7 +48,8 @@ from init_paths import init_test_paths init_test_paths(False) from PySide2 import QtCore -from PySide2.support.__feature__ import _really_all_feature_names +from PySide2.support.__feature__ import ( + _really_all_feature_names, pyside_feature_dict) from textwrap import dedent """ @@ -67,7 +68,6 @@ class FeaturesTest(unittest.TestCase): """ Test for all 256 possible combinations of `__feature__` imports. """ - global __name__ def tst_bit0(flag, self): if flag == 0: @@ -108,9 +108,10 @@ class FeaturesTest(unittest.TestCase): tst_bit4, tst_bit5, tst_bit6, tst_bit7] for idx in range(0x100): - __name__ = "feature_{:02x}".format(idx) + pyside_feature_dict.clear() + config = "feature_{:02x}".format(idx) print() - print("--- Feature Test Module `{}` ---".format(__name__)) + print("--- Feature Test Config `{}` ---".format(config)) print("Imports:") for bit in range(8): if idx & 1 << bit: |
