mirror of https://github.com/python/cpython
#4736 BufferRWPair.closed shouldn't try to call another property as a function
This commit is contained in:
parent
e098c4abe5
commit
54686e3c29
|
@ -1167,7 +1167,7 @@ class BufferedRWPair(BufferedIOBase):
|
|||
|
||||
@property
|
||||
def closed(self):
|
||||
return self.writer.closed()
|
||||
return self.writer.closed
|
||||
|
||||
|
||||
class BufferedRandom(BufferedWriter, BufferedReader):
|
||||
|
|
|
@ -554,8 +554,9 @@ class BufferedRWPairTest(unittest.TestCase):
|
|||
r = MockRawIO(())
|
||||
w = MockRawIO()
|
||||
pair = io.BufferedRWPair(r, w)
|
||||
self.assertFalse(pair.closed)
|
||||
|
||||
# XXX need implementation
|
||||
# XXX More Tests
|
||||
|
||||
|
||||
class BufferedRandomTest(unittest.TestCase):
|
||||
|
|
Loading…
Reference in New Issue