Fix stupid typo: Don't read from a writer.
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 @@
 
     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):