Skip to content

Commit 799ebe1

Browse files
committed
Remove the get_phrase_cfws_only_raises test
This test's name does not start with test_, which prevents it from running. Apparently it was accidentally added this way. None of the callers of get_phrase() assume it can raise exceptions, so simply dropping the test seems best. The fact that the phrase is invalid still gets recorded in defects.
1 parent f63d378 commit 799ebe1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Lib/test/test_email/test__header_value_parser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,10 +1031,6 @@ def test_get_phrase_ending_with_obsolete(self):
10311031
self.assertEqual(len(phrase), 4)
10321032
self.assertEqual(phrase[3].comments, ['with trailing comment'])
10331033

1034-
def get_phrase_cfws_only_raises(self):
1035-
with self.assertRaises(errors.HeaderParseError):
1036-
parser.get_phrase(' (foo) ')
1037-
10381034
# get_local_part
10391035

10401036
def test_get_local_part_simple(self):

0 commit comments

Comments
 (0)