mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Fix stupid typo: Don't read from a writer.
This commit is contained in:
parent
bb5fbc4af9
commit
a9620d1e2b
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue