summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_memoryio.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-08-13 08:35:19 (GMT)
committerGeorg Brandl <georg@python.org>2009-08-13 08:35:19 (GMT)
commit97b28f843718db2e111e8288e4fb7d183ddff58a (patch)
tree479e550b8906b5d001ad68ac116291edd5f83588 /Lib/test/test_memoryio.py
parentc5605dffdb226e85f415bd6edb441dad714fbc0c (diff)
downloadcpython-97b28f843718db2e111e8288e4fb7d183ddff58a.zip
cpython-97b28f843718db2e111e8288e4fb7d183ddff58a.tar.gz
cpython-97b28f843718db2e111e8288e4fb7d183ddff58a.tar.bz2
Merged revisions 74316,74335 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r74316 | alexandre.vassalotti | 2009-08-05 01:19:13 +0200 (Mi, 05 Aug 2009) | 4 lines Issue 5449: Fix io.BytesIO to not accept arbitrary keywords Patch contributed by Erick Tryzelaar. ........ r74335 | philip.jenvey | 2009-08-06 22:00:08 +0200 (Do, 06 Aug 2009) | 1 line typo ........
Diffstat (limited to 'Lib/test/test_memoryio.py')
-rw-r--r--Lib/test/test_memoryio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py
index 0d044e9..187adad 100644
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -416,6 +416,10 @@ 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 PyStringIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase):
buftype = str