aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_987.py
blob: 9609a457b81844904f307a098e2509516ab8b623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()