Fixes Bug #944: Segfault on QIcon(None).pixmap()
http://bugs.pyside.org/show_bug.cgi?id=944 Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
a713e377bb
commit
40938ef366
3 changed files with 20 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ PYSIDE_TEST(qgraphicsitem_isblocked_test.py)
|
|||
PYSIDE_TEST(qgraphicsitem_test.py)
|
||||
PYSIDE_TEST(qgraphicsproxywidget_test.py)
|
||||
PYSIDE_TEST(qgraphicsscene_test.py)
|
||||
PYSIDE_TEST(qicon_test.py)
|
||||
PYSIDE_TEST(qimage_test.py)
|
||||
PYSIDE_TEST(qinputcontext_test.py)
|
||||
PYSIDE_TEST(qinputdialog_get_test.py)
|
||||
|
|
|
|||
17
tests/QtGui/qicon_test.py
Normal file
17
tests/QtGui/qicon_test.py
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue