mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF bug #978308, Spurious errors taking bool of dead pro
Need to return -1 on error. Needs backport.
This commit is contained in:
parent
bd7f76dd04
commit
bdcb9410c2
2 changed files with 2 additions and 1 deletions
|
@ -104,6 +104,7 @@ class ReferencesTestCase(TestBase):
|
|||
|
||||
self.assertRaises(weakref.ReferenceError, check, ref1)
|
||||
self.assertRaises(weakref.ReferenceError, check, ref2)
|
||||
self.assertRaises(weakref.ReferenceError, bool, weakref.proxy(C()))
|
||||
self.assert_(self.cbcalled == 2)
|
||||
|
||||
def check_basic_ref(self, factory):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue