Fix bug 653 - "Crash after calling QWizardPage.wizard()"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
295b965d3c
commit
709895f2fb
3 changed files with 25 additions and 1 deletions
17
tests/QtGui/bug_653.py
Normal file
17
tests/QtGui/bug_653.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import unittest
|
||||
from PySide.QtCore import *
|
||||
from PySide.QtGui import *
|
||||
|
||||
class TestBug653(unittest.TestCase):
|
||||
"""Crash after calling QWizardPage.wizard()"""
|
||||
def testIt(self):
|
||||
app = QApplication([])
|
||||
|
||||
wizard = QWizard()
|
||||
page = QWizardPage()
|
||||
wizard.addPage(page)
|
||||
page.wizard() # crash here if the bug still exists due to a circular dependency
|
||||
wizard.show()
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue