[pypy-svn] pypy default: Added a unittest for JITting os_local.

alex_gaynor commits-noreply at bitbucket.org
Wed Jan 12 14:33:56 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r40626:2fe775684374
Date: 2011-01-12 07:33 -0600
http://bitbucket.org/pypy/pypy/changeset/2fe775684374/

Log:	Added a unittest for JITting os_local.

diff --git a/pypy/module/pypyjit/test/test_policy.py b/pypy/module/pypyjit/test/test_policy.py
--- a/pypy/module/pypyjit/test/test_policy.py
+++ b/pypy/module/pypyjit/test/test_policy.py
@@ -32,6 +32,10 @@
     from pypy.module.__builtin__.descriptor import W_Property
     assert pypypolicy.look_inside_function(W_Property.get.im_func)
 
+def test_thread_local():
+    from pypy.module.thread.os_local import Local
+    assert pypypolicy.look_inside_function(Local.getdict.im_func)
+
 def test_pypy_module():
     from pypy.module._random.interp_random import W_Random
     assert not pypypolicy.look_inside_function(W_Random.random)


More information about the Pypy-commit mailing list