diff options
Diffstat (limited to 'tests/QtGui/qicon_test.py')
-rw-r--r-- | tests/QtGui/qicon_test.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtGui/qicon_test.py b/tests/QtGui/qicon_test.py new file mode 100644 index 000000000..738e72c50 --- /dev/null +++ b/tests/QtGui/qicon_test.py @@ -0,0 +1,17 @@ + +import unittest + +from helper import TimedQApplication +from PySide.QtGui import QIcon + + +class QIconCtorWithNoneTest(TimedQApplication): + '''Test made by seblin, see Bug #944: http://bugs.pyside.org/show_bug.cgi?id=944''' + + def testQIconCtorWithNone(self): + icon = QIcon(None) + pixmap = icon.pixmap(48, 48) + self.app.exec_() + +if __name__ == '__main__': + unittest.main() |