diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-02-08 10:10:01 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-02-08 10:10:01 (GMT) |
commit | a9620d1e2b9501481aefdb1be1960585eb701534 (patch) | |
tree | eb2a28c258dca8d52d784d752cacb01664edfa78 /Lib/test/test_codecs.py | |
parent | bb5fbc4af9ee68428c26a3a2e2b1f6747a787473 (diff) | |
download | cpython-a9620d1e2b9501481aefdb1be1960585eb701534.zip cpython-a9620d1e2b9501481aefdb1be1960585eb701534.tar.gz cpython-a9620d1e2b9501481aefdb1be1960585eb701534.tar.bz2 |
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 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): |