Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb5fbc4 commit a9620d1Copy full SHA for a9620d1
1 file changed
Lib/test/test_codecs.py
@@ -161,11 +161,11 @@ def test_only_one_bom(self):
161
162
def test_badbom(self):
163
s = StringIO.StringIO("\xff\xff")
164
- f = codecs.getwriter(self.encoding)(s)
+ f = codecs.getreader(self.encoding)(s)
165
self.assertRaises(UnicodeError, f.read)
166
167
s = StringIO.StringIO("\xff\xff\xff\xff")
168
169
170
171
def test_partial(self):
0 commit comments