Avoid triggering DeprecationWarnings in test_smtpd and smtpd.
2 files changed