diff options
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/wrong_return_test.py')
-rw-r--r-- | sources/pyside2/tests/QtWidgets/wrong_return_test.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sources/pyside2/tests/QtWidgets/wrong_return_test.py b/sources/pyside2/tests/QtWidgets/wrong_return_test.py index d95ae7639..27b5309e9 100644 --- a/sources/pyside2/tests/QtWidgets/wrong_return_test.py +++ b/sources/pyside2/tests/QtWidgets/wrong_return_test.py @@ -37,7 +37,6 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from init_paths import init_test_paths init_test_paths(False) -import py3kcompat as py3k from PySide2 import QtWidgets from helper.usesqapplication import UsesQApplication @@ -56,10 +55,7 @@ class testCase(UsesQApplication): def testVirtualReturn(self): w = MyWidget() - if py3k.IS_PY3K: - self.assertWarns(RuntimeWarning, w.show) - else: - self.assertRaises(RuntimeWarning, w.show) + self.assertWarns(RuntimeWarning, w.show) if __name__ == '__main__': |