Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r44638:35ef9cfa4dc7
Date: 2011-06-02 11:08 +0200
http://bitbucket.org/pypy/pypy/changeset/35ef9cfa4dc7/

Log:    skip this test when running -A

diff --git a/pypy/module/pypyjit/test/test_jit_hook.py 
b/pypy/module/pypyjit/test/test_jit_hook.py
--- a/pypy/module/pypyjit/test/test_jit_hook.py
+++ b/pypy/module/pypyjit/test/test_jit_hook.py
@@ -1,5 +1,6 @@
 
-from pypy.conftest import gettestobjspace    
+import py
+from pypy.conftest import gettestobjspace, option
 from pypy.interpreter.pycode import PyCode
 from pypy.interpreter.gateway import interp2app
 from pypy.jit.metainterp.history import LoopToken
@@ -17,6 +18,8 @@
 
 class AppTestJitHook(object):
     def setup_class(cls):
+        if option.runappdirect:
+            py.test.skip("Can't run this test with -A")
         space = gettestobjspace(usemodules=('pypyjit',))
         cls.space = space
         w_f = space.appexec([], """():
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to