[pypy-svn] r44135 - pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/test

fijal at codespeak.net fijal at codespeak.net
Mon Jun 11 13:47:02 CEST 2007


Author: fijal
Date: Mon Jun 11 13:47:01 2007
New Revision: 44135

Modified:
   pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/test/test_rfficache.py
Log:
Fix the test


Modified: pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/test/test_rfficache.py
==============================================================================
--- pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/test/test_rfficache.py	(original)
+++ pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/test/test_rfficache.py	Mon Jun 11 13:47:01 2007
@@ -11,13 +11,14 @@
     tmpfile = udir.join("somecrappyfile.py")
     assert get_type_sizes(tmpfile)['char'] == 8
     # this should not invoke a compiler
-    assert get_type_sizes(tmpfile, compiler_exe='xxx')['char'] == 8
+    res = get_type_sizes(tmpfile, compiler_exe='xxx')
+    assert res['char'] == 8
 
 def test_gettypesizes_platforms():
     tmpfile = udir.join("plat.py")
     tmpfile.write(py.code.Source("""
-    platforms = {'xxx':{'char':4}}
-    """))
+    platforms = {'xxx':{%s}}
+    """ % ", ".join(['"%s":4' % i for i in TYPES])))
     assert get_type_sizes(tmpfile)['char'] == 8
     assert get_type_sizes(tmpfile, platform_key='xxx', compiler_exe='xxx')['char'] == 4
 


More information about the pypy-svn mailing list