blob: 5cf8a040403da62ce2760d45fde73e578c37808b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import unittest
from PySide2.QtCore import *
from PySide2.QtWidgets 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()
|