summaryrefslogtreecommitdiff
path: root/Lib/test/test_codecs.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-07 14:06:19 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-07 14:06:19 +0200
commit85e7066278775ca762215186edb117fb2c7cc2dc (patch)
treee876bf8f41132e893d3519e3cfd078ecf57f9139 /Lib/test/test_codecs.py
parent57b967791a552656f4c21a4af283788269d06d83 (diff)
parent519114df4258f17bc33a31c6c1614fd82e2ab0be (diff)
downloadcpython-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.py4
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