Skip to content

Commit

Permalink
Check for new error
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Apr 4, 2024
1 parent 38ecfe2 commit 614a6ae
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 614a6ae

Please sign in to comment.