summaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_998.py
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-09-06 11:06:26 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-09-06 15:06:27 -0300
commitd01f3bd04cf3bd764e8fdd4f291c9875aa449b60 (patch)
tree0295c910274cfddd6765ac1f10695f6a77dbb3ce /tests/QtGui/bug_998.py
parent18f860962c9e844fa6fe1e1e8d1e53dd5265fa46 (diff)
downloadpyside-d01f3bd04cf3bd764e8fdd4f291c9875aa449b60.tar.gz
pyside-d01f3bd04cf3bd764e8fdd4f291c9875aa449b60.tar.xz
pyside-d01f3bd04cf3bd764e8fdd4f291c9875aa449b60.zip
Create unit test for bug #998.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
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()