diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-05-14 15:12:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-05-14 15:12:27 (GMT) |
commit | e1e04ad8aac819941948b994937f1d42d83a564b (patch) | |
tree | 971a16b95e08f942c596829e1630087b34a8b985 /Lib | |
parent | b78c448f4bad3afee409129337709e5fb110e5f3 (diff) | |
download | cpython-e1e04ad8aac819941948b994937f1d42d83a564b.zip cpython-e1e04ad8aac819941948b994937f1d42d83a564b.tar.gz cpython-e1e04ad8aac819941948b994937f1d42d83a564b.tar.bz2 |
Backed out changeset 6ceedbd88b5f
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_codecs.py | 12 |
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) |