diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-24 12:28:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-24 12:28:22 (GMT) |
commit | f7820c162648b7b724d0195541896a64ac5df294 (patch) | |
tree | 1b3f7ed20e6521733d3af68d8aed54e73e7d25d6 /Lib | |
parent | fa94e80f3b2c88d4cdcc809c8e1931e289373e84 (diff) | |
download | cpython-f7820c162648b7b724d0195541896a64ac5df294.zip cpython-f7820c162648b7b724d0195541896a64ac5df294.tar.gz cpython-f7820c162648b7b724d0195541896a64ac5df294.tar.bz2 |
Manual py3k backport: [svn r74316] Issue #5449: Fix io.BytesIO to not accept arbitrary keywords
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_memoryio.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py index d94d1a6..e55a811 100644 --- a/Lib/test/test_memoryio.py +++ b/Lib/test/test_memoryio.py @@ -467,6 +467,11 @@ class PyBytesIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase): self.assertEqual(memio.write(a), 10) self.assertEqual(memio.getvalue(), buf) + def test_issue5449(self): + buf = self.buftype("1234567890") + self.ioclass(initial_bytes=buf) + self.assertRaises(TypeError, self.ioclass, buf, foo=None) + class TextIOTestMixin: |