summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_998.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_998.py')
-rw-r--r--tests/QtGui/bug_998.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/QtGui/bug_998.py b/tests/QtGui/bug_998.py
new file mode 100644
index 0000000..d5ea3b2
--- /dev/null
+++ b/tests/QtGui/bug_998.py
@@ -0,0 +1,10 @@
+import unittest
+from PySide.QtGui import QApplication
+
+class TestBug998 (unittest.TestCase):
+ def testNoFocusWindow(self):
+ widget = QApplication.focusWidget()
+ self.assertTrue(widget == None)
+
+if __name__ == '__main__':
+ unittest.main()