aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qtgui/qpixmap_test.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/qtgui/qpixmap_test.py b/tests/qtgui/qpixmap_test.py
index ce6c1eaba..bc287f369 100644
--- a/tests/qtgui/qpixmap_test.py
+++ b/tests/qtgui/qpixmap_test.py
@@ -1,8 +1,8 @@
import unittest
from helper import UsesQApplication
-from PySide.QtGui import QPixmap
-from PySide.QtCore import QVariant, QSize, QString
+from PySide.QtGui import *
+from PySide.QtCore import *
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
@@ -17,6 +17,12 @@ class QPixmapTest(UsesQApplication):
def testQStringConstructor(self):
pixmap = QPixmap(QString("Testing!"))
+ def testQVariantConstructor(self):
+ v = QVariant(QPixmap())
+ pixmap2 = QPixmap(v)
+ v = QVariant(QImage())
+ pixmap2 = QPixmap(v)
+
if __name__ == '__main__':
unittest.main()