mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #13248: io: Remove obsolete argument "max_buffer_size" of BufferedWriter and BufferedRWPair.
This commit is contained in:
parent
af1adbeedd
commit
109d57358e
5 changed files with 21 additions and 63 deletions
|
@ -1255,9 +1255,8 @@ class BufferedWriterTest(unittest.TestCase, CommonBufferedTests):
|
|||
self.assertRaises(IOError, bufio.tell)
|
||||
self.assertRaises(IOError, bufio.write, b"abcdef")
|
||||
|
||||
def test_max_buffer_size_deprecation(self):
|
||||
with support.check_warnings(("max_buffer_size is deprecated",
|
||||
DeprecationWarning)):
|
||||
def test_max_buffer_size_removal(self):
|
||||
with self.assertRaises(TypeError):
|
||||
self.tp(self.MockRawIO(), 8, 12)
|
||||
|
||||
|
||||
|
@ -1313,9 +1312,8 @@ class BufferedRWPairTest(unittest.TestCase):
|
|||
pair = self.tp(self.MockRawIO(), self.MockRawIO())
|
||||
self.assertRaises(self.UnsupportedOperation, pair.detach)
|
||||
|
||||
def test_constructor_max_buffer_size_deprecation(self):
|
||||
with support.check_warnings(("max_buffer_size is deprecated",
|
||||
DeprecationWarning)):
|
||||
def test_constructor_max_buffer_size_removal(self):
|
||||
with self.assertRaises(TypeError):
|
||||
self.tp(self.MockRawIO(), self.MockRawIO(), 8, 12)
|
||||
|
||||
def test_constructor_with_not_readable(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue