Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
Check for new error
  • Loading branch information
zooba committed Apr 4, 2024
commit 614a6aed51d692905ceb498c2aa30656303df8fb
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_long.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def test_long_asnativebytes(self):
f"PyLong_AsNativeBytes(v, buffer, {n}, <little|unsigned>)")

# Ensure Py_ASNATIVEBYTES_REJECT_NEGATIVE raises on negative value
with self.assertRaises(OverflowError):
with self.assertRaises(ValueError):
asnativebytes(-1, buffer, 0, 8)

# Check a few error conditions. These are validated in code, but are
Expand Down