summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-02-08 10:10:01 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-02-08 10:10:01 (GMT)
commita9620d1e2b9501481aefdb1be1960585eb701534 (patch)
treeeb2a28c258dca8d52d784d752cacb01664edfa78
parentbb5fbc4af9ee68428c26a3a2e2b1f6747a787473 (diff)
downloadcpython-a9620d1e2b9501481aefdb1be1960585eb701534.zip
cpython-a9620d1e2b9501481aefdb1be1960585eb701534.tar.gz
cpython-a9620d1e2b9501481aefdb1be1960585eb701534.tar.bz2
Fix stupid typo: Don't read from a writer.
-rw-r--r--Lib/test/test_codecs.py4
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):