Author: Alex Gaynor <[email protected]>
Branch: kill-someobject
Changeset: r57904:1e1a6ece3305
Date: 2012-10-08 13:54 +0200
http://bitbucket.org/pypy/pypy/changeset/1e1a6ece3305/

Log:    get another test running

diff --git a/pypy/translator/c/test/test_backendoptimized.py 
b/pypy/translator/c/test/test_backendoptimized.py
--- a/pypy/translator/c/test/test_backendoptimized.py
+++ b/pypy/translator/c/test/test_backendoptimized.py
@@ -1,8 +1,8 @@
-import py
+from pypy import conftest
+from pypy.rlib.rarithmetic import r_uint, r_longlong, r_ulonglong
+from pypy.translator.backendopt.all import backend_optimizations
 from pypy.translator.c.test.test_typed import TestTypedTestCase as 
_TestTypedTestCase
-from pypy.translator.backendopt.all import backend_optimizations
-from pypy.rlib.rarithmetic import r_uint, r_longlong, r_ulonglong
-from pypy import conftest
+
 
 class TestTypedOptimizedTestCase(_TestTypedTestCase):
 
@@ -24,7 +24,6 @@
         assert f(False) == 456
 
     def test__del__(self):
-        import os
         class B(object):
             pass
         b = B()
@@ -50,7 +49,7 @@
         res = fn(5)
         # translated function loses its last reference earlier
         assert res == 6
-    
+
     def test_del_inheritance(self):
         class State:
             pass
diff --git a/pypy/translator/c/test/test_typed.py 
b/pypy/translator/c/test/test_typed.py
--- a/pypy/translator/c/test/test_typed.py
+++ b/pypy/translator/c/test/test_typed.py
@@ -304,10 +304,10 @@
         #     that can't be converted to a PyListObject
         def wrapper():
             lst = snippet.call_five()
-            return len(lst), lst[0]
+            return (len(lst), lst[0]) == (1, 5)
         call_five = self.getcompiled(wrapper)
         result = call_five()
-        assert result == (1, 5)
+        assert result
 
     def test_get_set_del_slice(self):
         def get_set_del_nonneg_slice(): # no neg slices for now!
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to