Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r54805:6e370cf3d797
Date: 2012-04-29 14:25 +0200
http://bitbucket.org/pypy/pypy/changeset/6e370cf3d797/

Log:    Remove the part of the test handling thread-locals

diff --git a/pypy/translator/stm/test/test_ztranslated.py 
b/pypy/translator/stm/test/test_ztranslated.py
--- a/pypy/translator/stm/test/test_ztranslated.py
+++ b/pypy/translator/stm/test/test_ztranslated.py
@@ -72,22 +72,22 @@
         R = lltype.GcStruct('R', ('x', lltype.Signed))
         S1 = lltype.Struct('S1', ('r', lltype.Ptr(R)))
         s1 = lltype.malloc(S1, immortal=True, flavor='raw')
-        S2 = lltype.Struct('S2', ('r', lltype.Ptr(R)),
-                           hints={'stm_thread_local': True})
-        s2 = lltype.malloc(S2, immortal=True, flavor='raw')
+        #S2 = lltype.Struct('S2', ('r', lltype.Ptr(R)),
+        #                   hints={'stm_thread_local': True})
+        #s2 = lltype.malloc(S2, immortal=True, flavor='raw')
         def do_stuff():
             rstm.run_all_transactions(DoNothing())
             print s1.r.x
-            print s2.r.x
+            #print s2.r.x
         do_stuff._dont_inline_ = True
         def main(argv):
             s1.r = lltype.malloc(R)
             s1.r.x = 42
-            s2.r = lltype.malloc(R)
-            s2.r.x = 43
+            #s2.r = lltype.malloc(R)
+            #s2.r.x = 43
             do_stuff()
             return 0
         #
         t, cbuilder = self.compile(main)
         data = cbuilder.cmdexec('')
-        assert '42\n43\n' in data, "got: %r" % (data,)
+        assert '42\n' in data, "got: %r" % (data,)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to