mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Tests: fix Python 3.13 email.utils.make_msgid mocking
Python 3.13 changes where email.utils imports socket for make_msgid.
This commit is contained in:
@@ -13,7 +13,7 @@ class InlineImageTests(AnymailTestMixin, SimpleTestCase):
|
|||||||
self.message = EmailMultiAlternatives()
|
self.message = EmailMultiAlternatives()
|
||||||
super().setUp()
|
super().setUp()
|
||||||
|
|
||||||
@patch("email.utils.socket.getfqdn")
|
@patch("socket.getfqdn")
|
||||||
def test_default_domain(self, mock_getfqdn):
|
def test_default_domain(self, mock_getfqdn):
|
||||||
"""The default Content-ID domain should *not* use local hostname"""
|
"""The default Content-ID domain should *not* use local hostname"""
|
||||||
# (This avoids problems with ESPs that re-use Content-ID as attachment
|
# (This avoids problems with ESPs that re-use Content-ID as attachment
|
||||||
|
|||||||
Reference in New Issue
Block a user