[Python-checkins] python/dist/src/Lib/test test_codecs.py, 1.19, 1.20

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Tue Feb 8 11:10:04 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25913/Lib/test

Modified Files:
	test_codecs.py 
Log Message:
Fix stupid typo: Don't read from a writer.


Index: test_codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codecs.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- test_codecs.py	4 Feb 2005 14:15:34 -0000	1.19
+++ test_codecs.py	8 Feb 2005 10:10:01 -0000	1.20
@@ -161,11 +161,11 @@
 
     def test_badbom(self):
         s = StringIO.StringIO("\xff\xff")
-        f = codecs.getwriter(self.encoding)(s)
+        f = codecs.getreader(self.encoding)(s)
         self.assertRaises(UnicodeError, f.read)
 
         s = StringIO.StringIO("\xff\xff\xff\xff")
-        f = codecs.getwriter(self.encoding)(s)
+        f = codecs.getreader(self.encoding)(s)
         self.assertRaises(UnicodeError, f.read)
 
     def test_partial(self):



More information about the Python-checkins mailing list