diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-07-07 15:03:22 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-07-07 15:03:22 (GMT) |
commit | 109d57358e9078fb1139e2b7687d7e300ce4dcb4 (patch) | |
tree | a485bc26bf29cad1d4e8b9c13c82ae09cab8235e /Lib/test/test_io.py | |
parent | af1adbeedd9717fa8cfd47b3fa248a8169d7ef8e (diff) | |
download | cpython-109d57358e9078fb1139e2b7687d7e300ce4dcb4.zip cpython-109d57358e9078fb1139e2b7687d7e300ce4dcb4.tar.gz cpython-109d57358e9078fb1139e2b7687d7e300ce4dcb4.tar.bz2 |
Issue #13248: io: Remove obsolete argument "max_buffer_size" of BufferedWriter and BufferedRWPair.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 54ba179..ed8564c 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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): |