Mikael Koli 3 роки тому
батько
коміт
70dc7c3607
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      redmail/test/email/test_headers.py

+ 7 - 0
redmail/test/email/test_headers.py

@@ -80,6 +80,13 @@ def test_custom_headers(how):
     email = EmailSender(host=None, port=1234)
     headers = {"Importance": "high"}
 
+    if IS_PY37:
+        # Python <=3.7 has problems with domain names with UTF-8
+        # This is mostly problem with CI.
+        # We simulate realistic domain name
+        domain = "REDMAIL-1234.mail.com"
+        email.domain = domain
+
     if how == "email":
         msg = email.get_message(
             sender="me@example.com",