blob: fdca31a66b67532c1d7c03ee7e062d6bf1174570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
|