diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-02-08 10:10:01 +0000 |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-02-08 10:10:01 +0000 |
commit | 18e655a474c834983c72740c36669f776b23933b (patch) | |
tree | ff6c0cb47f4b85af549f07b906bbd12cc2459222 /Lib/test/test_codecs.py | |
parent | b7a4e7656fbc09bfae7cea467efdba008115ebf5 (diff) | |
download | cpython-18e655a474c834983c72740c36669f776b23933b.tar.gz |
Fix stupid typo: Don't read from a writer.
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 5abc785657..01d8955f44 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -161,11 +161,11 @@ class UTF16Test(ReadTest): 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): |