diff options
author | Barry Warsaw <barry@python.org> | 2001-11-13 21:33:52 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-11-13 21:33:52 (GMT) |
commit | 135cce87188a81b60ca83c9e17c1669a68c41480 (patch) | |
tree | 06592c4be77c61688b9ae5987158852f87cd215b /Lib/test | |
parent | f1fd282f137952644a8c2a0330e3379e27a40582 (diff) | |
download | cpython-135cce87188a81b60ca83c9e17c1669a68c41480.zip cpython-135cce87188a81b60ca83c9e17c1669a68c41480.tar.gz cpython-135cce87188a81b60ca83c9e17c1669a68c41480.tar.bz2 |
A specific test for bug #481221, getaddrlist() failing on long
addresses. Commented out because it still takes too long to run.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_rfc822.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py index cc6e27b..0244f0d 100644 --- a/Lib/test/test_rfc822.py +++ b/Lib/test/test_rfc822.py @@ -185,6 +185,14 @@ class MessageTestCase(unittest.TestCase): self.check('To: User J. Person <person@dom.ain>\n\n', [('User J. Person', 'person@dom.ain')]) + # This takes to long to add to the test suite +## def test_an_excrutiatingly_long_address_field(self): +## OBSCENELY_LONG_HEADER_MULTIPLIER = 10000 +## oneaddr = ('Person' * 10) + '@' + ('.'.join(['dom']*10)) + '.com' +## addr = ', '.join([oneaddr] * OBSCENELY_LONG_HEADER_MULTIPLIER) +## lst = rfc822.AddrlistClass(addr).getaddrlist() +## self.assertEqual(len(lst), OBSCENELY_LONG_HEADER_MULTIPLIER) + def test_main(): test_support.run_unittest(MessageTestCase) |