aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/all_modules_load_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/pysidetest/all_modules_load_test.py')
-rw-r--r--sources/pyside6/tests/pysidetest/all_modules_load_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/all_modules_load_test.py b/sources/pyside6/tests/pysidetest/all_modules_load_test.py
index 70da51eb7..f8f2d4b79 100644
--- a/sources/pyside6/tests/pysidetest/all_modules_load_test.py
+++ b/sources/pyside6/tests/pysidetest/all_modules_load_test.py
@@ -42,11 +42,13 @@ import PySide6
# It is also really not recommended to use. But for testing,
# the "__all__" variable is a great feature!
+
class AllModulesImportTest(unittest.TestCase):
def testAllModulesCanImport(self):
# would also work: exec("from PySide6 import *")
for name in PySide6.__all__:
exec(f"import PySide6.{name}")
+
if __name__ == '__main__':
unittest.main()