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/bug_987.py | |
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/bug_987.py')
-rw-r--r-- | tests/QtCore/bug_987.py | 15 |
1 files changed, 15 insertions, 0 deletions
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() |