aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-06-29 10:43:37 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-06-29 10:47:39 -0300
commit27530522a8b494874549f11bcdd2a56e685870ba (patch)
treea1599c8df52577bcf2d5b56fc5313f5d91ed3e37 /tests
parentb812f04d2481464d8a0c0e117bba9d9aaf727e8c (diff)
Fix qwidget_test.
Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/CMakeLists.txt2
-rw-r--r--tests/QtGui/qwidget_test.py5
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index 5f50ea860..3c9c2c3ae 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -52,7 +52,7 @@ PYSIDE_TEST(qtextedit_signal_test.py)
PYSIDE_TEST(qtoolbar_test.py)
PYSIDE_TEST(qtoolbox_test.py)
PYSIDE_TEST(qwidget_setlayout_test.py)
-PYSIDE_TEST(qwidget_test.py TRUE) #Bug 237
+PYSIDE_TEST(qwidget_test.py)
PYSIDE_TEST(reference_count_test.py)
PYSIDE_TEST(standardpixmap_test.py)
PYSIDE_TEST(timed_app_test.py)
diff --git a/tests/QtGui/qwidget_test.py b/tests/QtGui/qwidget_test.py
index a14311c13..70271a093 100644
--- a/tests/QtGui/qwidget_test.py
+++ b/tests/QtGui/qwidget_test.py
@@ -11,10 +11,7 @@ class QWidgetInherit(QMainWindow):
class QWidgetTest(UsesQApplication):
def testInheritance(self):
- newobj = QWidgetInherit()
- widget = QWidget()
- newobj.setCentralWidget(widget)
- self.assertEqual(widget, newobj.centralWidget())
+ self.assertRaises(TypeError, QWidgetInherit)
class QWidgetVisible(UsesQApplication):