[pypy-svn] r68130 - pypy/trunk/pypy/translator/c/test

pedronis at codespeak.net pedronis at codespeak.net
Fri Oct 2 17:47:57 CEST 2009


Author: pedronis
Date: Fri Oct  2 17:47:55 2009
New Revision: 68130

Modified:
   pypy/trunk/pypy/translator/c/test/test_genc.py
Log:
some cleanup of this test file just because



Modified: pypy/trunk/pypy/translator/c/test/test_genc.py
==============================================================================
--- pypy/trunk/pypy/translator/c/test/test_genc.py	(original)
+++ pypy/trunk/pypy/translator/c/test/test_genc.py	Fri Oct  2 17:47:55 2009
@@ -290,7 +290,7 @@
     res = g2(0)
     assert isnan(res)
 
-def test_x():
+def test_prebuilt_instance_with_dict():
     class A:
         pass
     a = A()
@@ -375,23 +375,13 @@
         pass
     print f(C)
 
-def test_oswrite():
+def test_print():
     def f():
-        import os
-        os.write(1,"o")
-
-    t = TranslationContext()
-    s = t.buildannotator().build_types(f, [])
-    rtyper = t.buildrtyper(type_system="lltype")
-    rtyper.specialize()
-
-def test_x():
-    py.test.skip("Failing test. Seems that print allocs one bit too much")
-    def f():
-        print "xxx"
+        for i in range(10):
+            print "xxx"
 
     fn = compile(f, [])
-    fn()
+    fn(expected_extra_mallocs=1)
 
 def test_name():
     def f():



More information about the Pypy-commit mailing list