[Python-checkins] r70140 - python/branches/io-c/Lib/test/test_memoryio.py

benjamin.peterson python-checkins at python.org
Tue Mar 3 23:21:10 CET 2009


Author: benjamin.peterson
Date: Tue Mar 3 23:21:10 2009
New Revision: 70140
Log:
add the test from #5266
Modified:
 python/branches/io-c/Lib/test/test_memoryio.py
Modified: python/branches/io-c/Lib/test/test_memoryio.py
==============================================================================
--- python/branches/io-c/Lib/test/test_memoryio.py	(original)
+++ python/branches/io-c/Lib/test/test_memoryio.py	Tue Mar 3 23:21:10 2009
@@ -470,6 +470,8 @@
 self.assertEqual(3, memio.write("c\rd"))
 memio.seek(0)
 self.assertEqual(memio.read(), "a\nb\nc\nd")
+ memio = self.ioclass("a\r\nb", newline=None)
+ self.assertEqual(memio.read(3), "a\nb")
 
 def test_newline_empty(self):
 # newline=""


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /