#4736 BufferRWPair.closed shouldn't try to call another property as a function

This commit is contained in:
Benjamin Peterson 2008-12-24 15:10:27 +00:00
parent e098c4abe5
commit 54686e3c29
3 changed files with 5 additions and 2 deletions

View File

@ -1167,7 +1167,7 @@ class BufferedRWPair(BufferedIOBase):
@property
def closed(self):
return self.writer.closed()
return self.writer.closed
class BufferedRandom(BufferedWriter, BufferedReader):

View File

@ -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):

View File

@ -86,6 +86,8 @@ Core and Builtins
Library
-------
- Issue #4736: io.BufferedRWPair's closed property now functions properly.
- Issue #3954: Fix a potential SystemError in _hotshot.logreader error
handling.