Created unit test for bug #987.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
d0decf40df
commit
24838672f0
2 changed files with 16 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ PYSIDE_TEST(bug_927.py)
|
||||||
PYSIDE_TEST(bug_931.py)
|
PYSIDE_TEST(bug_931.py)
|
||||||
PYSIDE_TEST(bug_938.py)
|
PYSIDE_TEST(bug_938.py)
|
||||||
PYSIDE_TEST(bug_953.py)
|
PYSIDE_TEST(bug_953.py)
|
||||||
|
PYSIDE_TEST(bug_987.py)
|
||||||
PYSIDE_TEST(blocking_signals_test.py)
|
PYSIDE_TEST(blocking_signals_test.py)
|
||||||
PYSIDE_TEST(classinfo_test.py)
|
PYSIDE_TEST(classinfo_test.py)
|
||||||
PYSIDE_TEST(child_event_test.py)
|
PYSIDE_TEST(child_event_test.py)
|
||||||
|
|
|
||||||
15
tests/QtCore/bug_987.py
Normal file
15
tests/QtCore/bug_987.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue