Skip to content

Commit ecbb31c

Browse files
authored
r-prefix strs with \ in the tests
1 parent 81098ed commit ecbb31c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_email/test_email.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,7 +3383,7 @@ def test_getaddresses_nasty(self):
33833383
['foo: ;', '"Jason R. Mastaler" <[email protected]>']),
33843384
[('', ''), ('Jason R. Mastaler', '[email protected]')])
33853385
eq(utils.getaddresses(
3386-
['Pete(A nice \) chap) <pete(his account)@silly.test(his host)>']),
3386+
[r'Pete(A nice \) chap) <pete(his account)@silly.test(his host)>']),
33873387
[('Pete (A nice ) chap his account his host)', '[email protected]')])
33883388
eq(utils.getaddresses(
33893389
['(Empty list)(start)Undisclosed recipients :(nobody(I know))']),
@@ -3401,7 +3401,7 @@ def test_getaddresses_nasty(self):
34013401
['Undisclosed recipients:;']),
34023402
[('', '')])
34033403
eq(utils.getaddresses(
3404-
['<[email protected]>, "Giant; \"Big\" Box" <[email protected]>']),
3404+
[r'<[email protected]>, "Giant; \"Big\" Box" <[email protected]>']),
34053405
[('', '[email protected]'), ('Giant; Big Box', '[email protected]')])
34063406

34073407
def test_getaddresses_embedded_comment(self):

0 commit comments

Comments
 (0)