diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-26 16:28:53 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-27 15:30:14 +0200 |
commit | 04cc9e12f38aa4dcf2b33524f1775bf2b659ca5f (patch) | |
tree | 655d77d76f099b9641ecc285479023e573e18450 /sources/pyside6/tests/QtGui | |
parent | 653f8c8272f3e29c784173ebd98175bc843ee3a4 (diff) |
Tests: Fix star imports
Change-Id: If4e1d64af662b1802f2f748121bda5488a82235a
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/QtGui')
-rw-r--r-- | sources/pyside6/tests/QtGui/bug_652.py | 3 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/bug_PYSIDE-344.py | 6 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/bug_PYSIDE-41.py | 3 | ||||
-rw-r--r-- | sources/pyside6/tests/QtGui/qpixmap_test.py | 5 |
4 files changed, 10 insertions, 7 deletions
diff --git a/sources/pyside6/tests/QtGui/bug_652.py b/sources/pyside6/tests/QtGui/bug_652.py index 50aa7e7c7..a994e8997 100644 --- a/sources/pyside6/tests/QtGui/bug_652.py +++ b/sources/pyside6/tests/QtGui/bug_652.py @@ -35,7 +35,8 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from PySide6.QtGui import * +from PySide6.QtGui import QTextBlockUserData, QTextCursor, QTextDocument + class MyData(QTextBlockUserData): def __init__(self, data): diff --git a/sources/pyside6/tests/QtGui/bug_PYSIDE-344.py b/sources/pyside6/tests/QtGui/bug_PYSIDE-344.py index ce937c9a9..f221aebd4 100644 --- a/sources/pyside6/tests/QtGui/bug_PYSIDE-344.py +++ b/sources/pyside6/tests/QtGui/bug_PYSIDE-344.py @@ -39,8 +39,10 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from PySide6.QtCore import * -from PySide6.QtGui import * +from PySide6.QtCore import QMargins, QPoint, QPointF, QSize, QSizeF +from PySide6.QtGui import (QMatrix4x4, QQuaternion, QTransform, QVector2D, + QVector3D, QVector4D) + def testList(): return [QPoint(10, 10), QPointF(1, 1), QSize(10, 10), QSizeF(1, 1), diff --git a/sources/pyside6/tests/QtGui/bug_PYSIDE-41.py b/sources/pyside6/tests/QtGui/bug_PYSIDE-41.py index fff11779d..d7aea57bf 100644 --- a/sources/pyside6/tests/QtGui/bug_PYSIDE-41.py +++ b/sources/pyside6/tests/QtGui/bug_PYSIDE-41.py @@ -39,8 +39,7 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) -from PySide6.QtCore import * -from PySide6.QtGui import * +from PySide6.QtCore import QPersistentModelIndex, QStringListModel class TestBugPYSIDE41(unittest.TestCase): diff --git a/sources/pyside6/tests/QtGui/qpixmap_test.py b/sources/pyside6/tests/QtGui/qpixmap_test.py index 496bed5dc..9da7044f9 100644 --- a/sources/pyside6/tests/QtGui/qpixmap_test.py +++ b/sources/pyside6/tests/QtGui/qpixmap_test.py @@ -36,8 +36,9 @@ from init_paths import init_test_paths init_test_paths(False) from helper.usesqapplication import UsesQApplication -from PySide6.QtGui import * -from PySide6.QtCore import * +from PySide6.QtGui import QColor, QPixmap +from PySide6.QtCore import QFile, QIODevice, QObject, QSize, Qt + class QPixmapTest(UsesQApplication): def testQVariantConstructor(self): |