mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
merge 3.3 (#22517)
This commit is contained in:
commit
c44eb73473
3 changed files with 11 additions and 0 deletions
|
@ -1567,6 +1567,12 @@ class BufferedRWPairTest(unittest.TestCase):
|
|||
pair = self.tp(SelectableIsAtty(True), SelectableIsAtty(True))
|
||||
self.assertTrue(pair.isatty())
|
||||
|
||||
def test_weakref_clearing(self):
|
||||
brw = self.tp(self.MockRawIO(), self.MockRawIO())
|
||||
ref = weakref.ref(brw)
|
||||
brw = None
|
||||
ref = None # Shouldn't segfault.
|
||||
|
||||
class CBufferedRWPairTest(BufferedRWPairTest):
|
||||
tp = io.BufferedRWPair
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue