[pypy-svn] r64544 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test
antocuni at codespeak.net
antocuni at codespeak.net
Tue Apr 21 19:27:16 CEST 2009
Author: antocuni
Date: Tue Apr 21 19:27:16 2009
New Revision: 64544
Modified:
pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_loop.py
Log:
this was a shallow bug
Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_loop.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_loop.py (original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/test/test_loop.py Tue Apr 21 19:27:16 2009
@@ -312,9 +312,14 @@
return x
expected = f(100)
res = self.meta_interp(f, [100])
- assert len(res.chars) == len(expected)
- for i in range(len(expected)):
- assert expected[i] == res.chars[i]
+ if self.type_system == 'ootype':
+ assert res.ll_strlen() == len(expected)
+ for i in range(len(expected)):
+ assert expected[i] == res.ll_stritem_nonneg(i)
+ else:
+ assert len(res.chars) == len(expected)
+ for i in range(len(expected)):
+ assert expected[i] == res.chars[i]
def test_adapt_bridge_to_merge_point(self):
myjitdriver = JitDriver(greens = [], reds = ['x', 'z'])
@@ -541,7 +546,6 @@
def skip(self):
py.test.skip('in progress')
- test_loop_unicode = skip
test_outer_and_inner_loop = skip
More information about the Pypy-commit
mailing list