From a9620d1e2b9501481aefdb1be1960585eb701534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 8 Feb 2005 10:10:01 +0000 Subject: Fix stupid typo: Don't read from a writer. --- Lib/test/test_codecs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 5abc785..01d8955 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): -- cgit v0.12