summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_codecs.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 5aa2140..9b62d5b 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -1600,12 +1600,6 @@ class CodecsModuleTest(unittest.TestCase):
self.assertEqual(codecs.decode(b'abc'), 'abc')
self.assertRaises(UnicodeDecodeError, codecs.decode, b'\xff', 'ascii')
- # test keywords
- self.assertEqual(codecs.decode(obj=b'\xe4\xf6\xfc', encoding='latin-1'),
- '\xe4\xf6\xfc')
- self.assertEqual(codecs.decode(b'[\xff]', 'ascii', errors='ignore'),
- '[]')
-
def test_encode(self):
self.assertEqual(codecs.encode('\xe4\xf6\xfc', 'latin-1'),
b'\xe4\xf6\xfc')
@@ -1614,12 +1608,6 @@ class CodecsModuleTest(unittest.TestCase):
self.assertEqual(codecs.encode('abc'), b'abc')
self.assertRaises(UnicodeEncodeError, codecs.encode, '\xffff', 'ascii')
- # test keywords
- self.assertEqual(codecs.encode(obj='\xe4\xf6\xfc', encoding='latin-1'),
- b'\xe4\xf6\xfc')
- self.assertEqual(codecs.encode('[\xff]', 'ascii', errors='ignore'),
- b'[]')
-
def test_register(self):
self.assertRaises(TypeError, codecs.register)
self.assertRaises(TypeError, codecs.register, 42)