mirror of https://github.com/python/cpython.git
A specific test for bug #481221, getaddrlist() failing on long
addresses. Commented out because it still takes too long to run.
This commit is contained in:
parent
f1fd282f13
commit
135cce8718
|
@ -185,6 +185,14 @@ def test_rfc2822_phrases(self):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue