diff options
Diffstat (limited to 'tests/QtGui/qpixmap_test.py')
-rw-r--r-- | tests/QtGui/qpixmap_test.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/QtGui/qpixmap_test.py b/tests/QtGui/qpixmap_test.py index 7ba7454d4..1a0339f68 100644 --- a/tests/QtGui/qpixmap_test.py +++ b/tests/QtGui/qpixmap_test.py @@ -7,9 +7,10 @@ from PySide.QtCore import * class QPixmapTest(UsesQApplication): def testQVariantConstructor(self): + obj = QObject() pixmap = QPixmap() - v = QVariant(pixmap) - pixmap_copy = QPixmap(v) + obj.setProperty('foo', pixmap) + self.assertEqual(type(obj.property('foo')), QPixmap) def testQSizeConstructor(self): pixmap = QPixmap(QSize(10,20)) @@ -18,12 +19,6 @@ class QPixmapTest(UsesQApplication): def testQStringConstructor(self): pixmap = QPixmap("Testing!") - def testQVariantConstructor2(self): - v = QVariant(QPixmap()) - pixmap2 = QPixmap(v) - v = QVariant(QImage()) - pixmap2 = QPixmap(v) - def testQPixmapLoadFromDataWithQFile(self): f = QFile(os.path.join(os.path.dirname(__file__), 'sample.png')) self.assert_(f.open(QIODevice.ReadOnly)) |