[pypy-svn] r50882 - pypy/dist/pypy/rpython/lltypesystem/test
fijal at codespeak.net
fijal at codespeak.net
Tue Jan 22 17:03:27 CET 2008
Author: fijal
Date: Tue Jan 22 17:03:27 2008
New Revision: 50882
Modified:
pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py
Log:
Adapt this test to work on 64 bit as well.
Modified: pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py Tue Jan 22 17:03:27 2008
@@ -481,8 +481,10 @@
graph = graphof(a.translator, f)
s = summary(graph)
# there should be not too many operations here by now
- assert s == {'cast_int_to_uint': 1, 'direct_call': 1, 'cast_primitive': 2,
- 'cast_int_to_float': 1}
+ expected = {'cast_int_to_uint': 1, 'direct_call': 1,
+ 'cast_primitive': 2, 'cast_int_to_float': 1}
+ for k, v in expected.items():
+ assert s[k] == v
def test_stringpolicy1(self):
eci = ExternalCompilationInfo(includes=['string.h'])
More information about the Pypy-commit
mailing list