Author: Maciej Fijalkowski <[email protected]>
Branch: rdict-experiments-3
Changeset: r67312:29455e90f93a
Date: 2013-10-11 12:14 +0200
http://bitbucket.org/pypy/pypy/changeset/29455e90f93a/

Log:    make the test work by using llhelper on pseudortyper

diff --git a/rpython/rtyper/lltypesystem/rdict.py 
b/rpython/rtyper/lltypesystem/rdict.py
--- a/rpython/rtyper/lltypesystem/rdict.py
+++ b/rpython/rtyper/lltypesystem/rdict.py
@@ -161,7 +161,8 @@
     return DICT
 
 def llhelper_or_compile(rtyper, FUNCPTR, ll_func):
-    if rtyper is None:
+    # the check is for pseudo rtyper from tests
+    if rtyper is None or not hasattr(rtyper, 'annotate_helper_fn'):
         return llhelper(FUNCPTR, ll_func)
     else:
         return rtyper.annotate_helper_fn(ll_func, FUNCPTR.TO.ARGS)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to