Skip to content

Commit

Permalink
Tests: fix Python 3.13 email.utils.make_msgid mocking
Browse files Browse the repository at this point in the history
Python 3.13 changes where email.utils imports socket for make_msgid.
  • Loading branch information
medmunds committed Aug 7, 2024
1 parent ae6d730 commit 7779920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setUp(self):
self.message = EmailMultiAlternatives()
super().setUp()

@patch("email.utils.socket.getfqdn")
@patch("socket.getfqdn")
def test_default_domain(self, mock_getfqdn):
"""The default Content-ID domain should *not* use local hostname"""
# (This avoids problems with ESPs that re-use Content-ID as attachment
Expand Down

0 comments on commit 7779920

Please sign in to comment.