summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/QtGui/wrong_return_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/QtGui/wrong_return_test.py b/tests/QtGui/wrong_return_test.py
index d14ac9e..1807e4a 100644
--- a/tests/QtGui/wrong_return_test.py
+++ b/tests/QtGui/wrong_return_test.py
@@ -6,6 +6,10 @@ from PySide import QtCore, QtGui
from helper import UsesQApplication
+import warnings
+warnings.simplefilter('error')
+
+
class MyWidget(QtGui.QWidget):
def __init__(self, parent=None):
super(MyWidget, self).__init__(parent)
@@ -17,7 +21,7 @@ class testCase(UsesQApplication):
def testVirtualReturn(self):
w = MyWidget()
- self.assertRaises(TypeError, w.show)
+ self.assertRaises(RuntimeWarning, w.show)
if __name__ == '__main__':
unittest.main()