pypy/objspace/std/test/test_longobject.py::AppTestLong::()::test_pow_negative_exponent_modulo
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0xeb56b70c>
def test_pow_negative_exponent_modulo(self):
import math
import sys
mod = 2 ** 100
res = 519502503658624787456021964081
assert pow(3**100, -1, mod) == res
assert pow(3**100, -2, mod) == (res ** 2) % mod
> assert pow(12312388333333333333333333333333333333333333333333333333333, -sys.maxsize-1, 23) == 12
E (application-level) AssertionError
[/build_dir/own-linux-x86-32/build/pypy/objspace/std/test/test_longobject.py:542]:8: AssertionError
builder: own-linux-x86-32 build #9370
test: pypy/objspace/std/test/test_longobject/py/AppTestLong/()/test_pow_negative_exponent_modulo