Visitar URL original
Update `test_smtpnet.py` from 3.13.11 by ShaharNaveh · Pull Request #6435 · RustPython/RustPython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Catch AttributeError
  • Loading branch information
ShaharNaveh committed Dec 17, 2025
commit 5dac0e90f3d45b65781cc3165826d2c00e940855
3 changes: 2 additions & 1 deletion Lib/smtplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def _fix_eols(data):

try:
hmac.digest(b'', b'', 'md5')
except ValueError:
# except ValueError:
except (ValueError, AttributeError): # TODO: RUSTPYTHON
_have_cram_md5_support = False
else:
_have_cram_md5_support = True
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_smtplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,6 @@ def testAUTH_CRAM_MD5_blocked_and_fallback(self):
smtp_auth_cram_md5.assert_not_called() # no call to HMAC constructor
self.assertEqual(resp, (235, b'Authentication Succeeded'))

@unittest.expectedFailure # TODO: RUSTPYTHON
@hashlib_helper.requires_hashdigest('md5', openssl=True)
def testAUTH_multiple(self):
# Test that multiple authentication methods are tried.
Expand Down
Loading