Armin Rigo avatar Armin Rigo committed aa7889a

Disable again the ThreadLocal class.

Comments (0)

Files changed (2)

pypy/rlib/rstm.py

     llop.stm_thread_stopping(lltype.Void)
 
 
-class ThreadLocal(object):
+class DISABLEDThreadLocal(object):
     """
     A thread-local container.  Use only for one or a few static places,
     e.g. the ExecutionContext in the PyPy interpreter; and store any
                                    hints={'stm_thread_local': True})
 
     def __init__(self, Class):
-        assert not we_are_translated(), (
-            "You can only have a small number of ThreadLocal() instances"
-            " built during translation.")
+        """NOT_RPYTHON: You can only have a small number of ThreadLocal()
+        instances built during translation."""
         self.Class = Class
         self.threadlocal = lltype.malloc(self.STMTHREADLOCAL, immortal=True)
 

pypy/rlib/test/test_rstm.py

     py.test.raises(MyException, rstm.run_all_transactions, DoInOrder())
 
 def test_threadlocal():
+    py.test.skip("disabled")
     # not testing the thread-local factor, but only the general interface
     class Point:
         def __init__(self, x, y):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.