
import unittest

from PySide.QtGui import QInputDialog

from helper import UsesQApplication

class DynamicSignalTest(UsesQApplication):

    def cp(self, obj):
        self._called = True

    def testQDialog(self):
        dlg = QInputDialog()
        dlg.setInputMode(QInputDialog.TextInput)
        lst = dlg.children()
        self.assert_(len(lst))
        obj = lst[0]
        self._called = False
        obj.destroyed.connect(self.cb)
        obj = None
        del dlg
        self.assert_(self._called)


if __name__ == '__main__':
    unittest.main()

@@ -140,17 +140,17 @@
    def c
-p
+b
 (self, o

Fix typo in tests/QtGui/qdynamic_signal.py