diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 12:04:37 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 12:04:37 (GMT) |
| commit | 519114df4258f17bc33a31c6c1614fd82e2ab0be (patch) | |
| tree | 4f29d5972347ee48ec81fd6219e79fcdd5464d45 /Lib/test/test_codecs.py | |
| parent | e66bb9692977c66ffcbe9af64642ab5977879a9a (diff) | |
| download | cpython-519114df4258f17bc33a31c6c1614fd82e2ab0be.zip cpython-519114df4258f17bc33a31c6c1614fd82e2ab0be.tar.gz cpython-519114df4258f17bc33a31c6c1614fd82e2ab0be.tar.bz2 | |
Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.
Based on patch by Martin Panter.
Diffstat (limited to 'Lib/test/test_codecs.py')
| -rw-r--r-- | Lib/test/test_codecs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 856126c..d4a0660 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -2563,6 +2563,10 @@ class TransformCodecTest(unittest.TestCase): info = codecs.lookup(alias) self.assertEqual(info.name, expected_name) + def test_uu_invalid(self): + # Missing "begin" line + self.assertRaises(ValueError, codecs.decode, b"", "uu-codec") + # The codec system tries to wrap exceptions in order to ensure the error # mentions the operation being performed and the codec involved. We |
