diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-08-26 19:12:52 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:48 -0300 |
commit | 24838672f0b8256a4fddcb04cf30d7a4d53b7d52 (patch) | |
tree | a59d28ee61542c5dbcbdd0e22e3920ac5b1e1d83 /tests/QtCore | |
parent | d0decf40df7ec0f9474a2237fb0fd4809c43589f (diff) |
Created unit test for bug #987.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtCore')
-rw-r--r-- | tests/QtCore/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtCore/bug_987.py | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtCore/CMakeLists.txt b/tests/QtCore/CMakeLists.txt index aa646d790..2438b09cf 100644 --- a/tests/QtCore/CMakeLists.txt +++ b/tests/QtCore/CMakeLists.txt @@ -21,6 +21,7 @@ PYSIDE_TEST(bug_927.py) PYSIDE_TEST(bug_931.py) PYSIDE_TEST(bug_938.py) PYSIDE_TEST(bug_953.py) +PYSIDE_TEST(bug_987.py) PYSIDE_TEST(blocking_signals_test.py) PYSIDE_TEST(classinfo_test.py) PYSIDE_TEST(child_event_test.py) diff --git a/tests/QtCore/bug_987.py b/tests/QtCore/bug_987.py new file mode 100644 index 000000000..9609a457b --- /dev/null +++ b/tests/QtCore/bug_987.py @@ -0,0 +1,15 @@ +from PySide.QtCore import QObject + +import unittest + + +class TestBug987(unittest.TestCase): + def callback(self): + pass + + def testInvalidDisconnection(self): + o = QObject() + self.assertRaises(RuntimeError, o.destroyed.disconnect, self.callback) + +if __name__ == '__main__': + unittest.main() |