aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtGui/bug_1091.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtGui/bug_1091.py')
-rw-r--r--sources/pyside6/tests/QtGui/bug_1091.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/pyside6/tests/QtGui/bug_1091.py b/sources/pyside6/tests/QtGui/bug_1091.py
index 22788fea0..1e5ae4ce6 100644
--- a/sources/pyside6/tests/QtGui/bug_1091.py
+++ b/sources/pyside6/tests/QtGui/bug_1091.py
@@ -37,12 +37,13 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)
-from PySide6 import QtGui
+from PySide6.QtGui import QPainter
+
class QPainterTestCase(unittest.TestCase):
def testIt(self):
- self.assertTrue("PixmapFragment" in dir(QtGui.QPainter))
- self.assertTrue("drawPixmapFragments" in dir(QtGui.QPainter))
+ self.assertTrue("PixmapFragment" in dir(QPainter))
+ self.assertTrue("drawPixmapFragments" in dir(QPainter))
if __name__ == "__main__":
unittest.main()