Fix stupid typo: Don't read from a writer.

This commit is contained in:
Walter Dörwald 2005-02-08 10:10:01 +00:00
parent bb5fbc4af9
commit a9620d1e2b
1 changed files with 2 additions and 2 deletions

View File

@ -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):