--=_e61063c889c8de5cf7c3df230620423c Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" On Thu, 29 Oct 2009 00:37:14 +0100, Giovanni Bajo wrote: > On Wed, 28 Oct 2009 22:14:41 +0000, Phil Thompson > wrote: >> On Wed, 28 Oct 2009 19:35:44 +0100, Giovanni Bajo >> wrote: >>> Hi Phil, >>> >>> I'm testing PyQt 4.6.1 and SIP 4.9.1 over my small regression testsuite >>> (it contains testcases for bugs that I have reported to you over the >>> years and that you have fixed). >>> >>> There are 4 testcases failing with the new SIP/PyQt pair, but they all >>> seem related to the same issue. Try this one: >>> >>> ===================================================================== >>> #!/usr/bin/env python >>> from PyQt4.Qt import * >>> >>> a = QObject(None) >>> >>> called = [] >>> def myslot(): >>> called.append(True) >>> >>> QObject.connect(a, SIGNAL("destroyed()"), a, SIGNAL("QUIT()")) >>> QObject.connect(a, SIGNAL("destroyed()"), myslot) >>> QObject.connect(a, SIGNAL("QUIT()"), myslot) >>> >>> del a >>> assert len(called) == 2, len(called) >>> ===================================================================== >>> >>> I would say this should work, right? >> >> Fixed in tonight's PyQt snapshot (and test added to the test suite). > > Can you send me the patch please? Attached. Phil --=_e61063c889c8de5cf7c3df230620423c Content-Transfer-Encoding: base64 Content-Type: text/x-diff; charset="UTF-8"; name="destroyed.diff"; Content-Disposition: attachment; filename="destroyed.diff"; LS0tIFB5UXQvdHJ1bmsvNC9xcHkvUXRDb3JlL3FweWNvcmVfcHlxdHByb3h5LmNwcCAocmV2aXNp b24gMjY2MikNCisrKyBQeVF0L3RydW5rLzQvcXB5L1F0Q29yZS9xcHljb3JlX3B5cXRwcm94eS5j cHAgKHJldmlzaW9uIDI2NzQpDQpAQCAtMjE3LDcgKzIxNywxMCBAQA0KICAgICAvLyBieSBtYWtp bmcgdGhlIHByb3h5IGEgY2hpbGQgb2YgdGhlIHRyYW5zbWl0dGVyLiAgVGhpcyBkb2Vzbid0IHdv cmsgYXMNCiAgICAgLy8gZXhwZWN0ZWQgYmVjYXVzZSBRV2lkZ2V0IGRlc3Ryb3lzIGl0cyBjaGls ZHJlbiBiZWZvcmUgZW1pdHRpbmcgdGhlDQotICAgIC8vIGRlc3Ryb3llZCBzaWduYWwuKQ0KKyAg ICAvLyBkZXN0cm95ZWQgc2lnbmFsLikgIFdlIHVzZSBhIHF1ZXVlZCBjb25uZWN0aW9uIGluIGNh c2UgdGhlIHByb3h5IGlzIGFsc28NCisgICAgLy8gY29ubmVjdGVkIHRvIHRoZSBzYW1lIHNpZ25h bCBhbmQgd2Ugd2FudCB0byBtYWtlIHN1cmUgaXQgaGFzIGEgY2hhbmNlDQorICAgIC8vIHRvIGlu dm9rZSB0aGUgc2xvdCBiZWZvcmUgYmVpbmcgZGVzdHJveWVkLg0KICAgICBpZiAocXR4KQ0KLSAg ICAgICAgY29ubmVjdChxdHgsIFNJR05BTChkZXN0cm95ZWQoUU9iamVjdCAqKSksIFNMT1QoZGlz YWJsZSgpKSk7DQorICAgICAgICBjb25uZWN0KHF0eCwgU0lHTkFMKGRlc3Ryb3llZChRT2JqZWN0 ICopKSwgU0xPVChkaXNhYmxlKCkpLA0KKyAgICAgICAgICAgICAgICBRdDo6UXVldWVkQ29ubmVj dGlvbik7DQogfQ0KIA0K --=_e61063c889c8de5cf7c3df230620423c Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt --=_e61063c889c8de5cf7c3df230620423c--