~ubuntu-branches/ubuntu/natty/pyside/natty

« back to all changes in this revision

Viewing changes to tests/QtGui/bug_653.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110218180100-y8aqmcdbcbd6gpeh
Tags: upstream-1.0.0~rc1
ImportĀ upstreamĀ versionĀ 1.0.0~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import unittest
 
2
from PySide.QtCore import *
 
3
from PySide.QtGui import *
 
4
 
 
5
class TestBug653(unittest.TestCase):
 
6
    """Crash after calling QWizardPage.wizard()"""
 
7
    def testIt(self):
 
8
        app = QApplication([])
 
9
 
 
10
        wizard = QWizard()
 
11
        page = QWizardPage()
 
12
        wizard.addPage(page)
 
13
        page.wizard() # crash here if the bug still exists due to a circular dependency
 
14
        wizard.show()
 
15
 
 
16
if __name__ == "__main__":
 
17
    unittest.main()
 
 
b'\\ No newline at end of file'