Skip to content

Commit 7212905

Browse files
committed
restore supports_strict_parsing workaround
reverts 41b9ab2 and reimplements for new test structures
1 parent 35a34f2 commit 7212905

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/test_gmail/test_gmail.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,14 @@ def test_create_message_attachments_all(
178178
("<sender@email.com>", True),
179179
("Sender sender@email.com", False),
180180
("Sender <sender2email.com>", False),
181-
("Sender <sender@email,com>", False),
182-
("Sender <sender+alias@email,com>", False),
181+
(
182+
"Sender <sender@email,com>",
183+
False if getattr(email.utils, "supports_strict_parsing", False) else True,
184+
),
185+
(
186+
"Sender <sender+alias@email,com>",
187+
False if getattr(email.utils, "supports_strict_parsing", False) else True,
188+
),
183189
],
184190
)
185191
def test__validate_email_string(gmail_client: Gmail, email_str: str, expected_valid: bool):

0 commit comments

Comments
 (0)