We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef5d93d commit 7d0e145Copy full SHA for 7d0e145
1 file changed
test/test_limits.py
@@ -8,12 +8,12 @@
8
def test_integer():
9
x = -(2 ** 63)
10
assert unpackb(packb(x)) == x
11
- with pytest.raises(OverflowError):
+ with pytest.raises((OverflowError, ValueError)):
12
packb(x-1)
13
14
x = 2 ** 64 - 1
15
16
17
packb(x+1)
18
19
0 commit comments