translator/sandbox/test/test_sandbox.py::TestPrintedResults::()::test_safefuncs
self = <rpython.translator.sandbox.test.test_sandbox.TestPrintedResults instance at 0x000001b24f1aa2e0>
def test_safefuncs(self):
import math
def entry_point(argv):
a = float(argv[1])
print int(math.floor(a - 0.2)),
print int(math.ceil(a)),
print int(100.0 * math.sin(a)),
mantissa, exponent = math.frexp(a)
print int(100.0 * mantissa), exponent,
fracpart, intpart = math.modf(a)
print int(100.0 * fracpart), int(intpart),
print
return 0
> self.run(entry_point, ["3.011"], "2 4 13 75 2 1 3\n")
translator\sandbox\test\test_sandbox.py:352:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator\sandbox\test\test_sandbox.py:335: in run
output, error = proc.communicate()
translator\sandbox\sandlib.py:307: in communicate
self.handle_forever()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.translator.sandbox.sandlib.SimpleIOSandboxedProc object at 0x000001b24f1d5398>
def handle_forever(self):
returncode = self.handle_until_return()
if returncode != 0:
raise OSError("the sandboxed subprocess exited with code %d" % (
> returncode,))
E OSError: the sandboxed subprocess exited with code 3221225477
translator\sandbox\sandlib.py:220: OSError
builder: rpython-win-x86-64 build #404
test: translator/sandbox/test/test_sandbox/py/TestPrintedResults/()/test_safefuncs