From a8780dc4394b2869579ac5e91052428f05b94916 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 19 Dec 2022 15:33:51 -0400 Subject: [PATCH] test: fix (and simplify) changed email address generation (#4919) --- ietf/doc/tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ietf/doc/tests.py b/ietf/doc/tests.py index 53ec3e943..75cf5a764 100644 --- a/ietf/doc/tests.py +++ b/ietf/doc/tests.py @@ -1305,9 +1305,8 @@ Man Expires September 22, 2015 [Page 3] basis=change_reason ) - old_email = new_email = draft.authors()[0].email() - while new_email == old_email: - new_email = EmailFactory(person=draft.authors()[0]) + old_address = draft.authors()[0].email() + new_email = EmailFactory(person=draft.authors()[0], address=f'changed-{old_address}') post_data['author-0-email'] = new_email.address post_data['author-1-affiliation'] = 'University of Nowhere' post_data['author-2-country'] = 'Chile'