[pypy-svn] r72359 - pypy/branch/kill-python-h/pypy/rpython/test
arigo at codespeak.net
arigo at codespeak.net
Thu Mar 18 11:07:35 CET 2010
Author: arigo
Date: Thu Mar 18 11:07:34 2010
New Revision: 72359
Modified:
pypy/branch/kill-python-h/pypy/rpython/test/test_rint.py
Log:
A failing test.
Modified: pypy/branch/kill-python-h/pypy/rpython/test/test_rint.py
==============================================================================
--- pypy/branch/kill-python-h/pypy/rpython/test/test_rint.py (original)
+++ pypy/branch/kill-python-h/pypy/rpython/test/test_rint.py Thu Mar 18 11:07:34 2010
@@ -1,3 +1,4 @@
+import py
import sys, operator
from pypy.translator.translator import TranslationContext
from pypy.annotation import model as annmodel
@@ -105,6 +106,17 @@
res = self.ll_to_string(res)
assert res == '-' + oct(sys.maxint+1).replace('L', '').replace('l', '')
+ def test_str_of_longlong(self):
+ py.test.skip("Fails. Do we want to fix it or not? Unclear.")
+ def f(i):
+ return str(i)
+
+ res = self.interpret(f, [r_longlong(0)])
+ assert self.ll_to_string(res) == '0'
+
+ res = self.interpret(f, [r_longlong(413974738222117)])
+ assert self.ll_to_string(res) == '413974738222117'
+
def test_unsigned(self):
bigvalue = sys.maxint + 17
def dummy(i):
More information about the Pypy-commit
mailing list