diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 14:06:19 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 14:06:19 +0200 |
commit | 85e7066278775ca762215186edb117fb2c7cc2dc (patch) | |
tree | e876bf8f41132e893d3519e3cfd078ecf57f9139 /Lib/test/test_codecs.py | |
parent | 57b967791a552656f4c21a4af283788269d06d83 (diff) | |
parent | 519114df4258f17bc33a31c6c1614fd82e2ab0be (diff) | |
download | cpython-git-85e7066278775ca762215186edb117fb2c7cc2dc.tar.gz |
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 c1f54ec8a7..7d0eeb66fc 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -2571,6 +2571,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 |