mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.
Based on patch by Martin Panter.
This commit is contained in:
parent
e66bb96929
commit
519114df42
4 changed files with 30 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue