MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / should_raise

Function should_raise

tests/python/test_bigints.py:89–91  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

87 ident(num)
88
89 def should_raise(num):
90 with pytest.raises(OverflowError, match="Use pythonmonkey.bigint instead"):
91 ident(num)
92 # autopep8: off
93 not_raise(9007199254740991) # +(2**53-1), 0x433_FFFFFFFFFFFFF in float64
94 should_raise(9007199254740992) # +(2**53 ), 0x434_0000000000000 in float64

Callers 1

Calls 1

identFunction · 0.85

Tested by

no test coverage detected