Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r68403:4380ccd33714
Date: 2013-12-09 15:48 -0800
http://bitbucket.org/pypy/pypy/changeset/4380ccd33714/

Log:    a lame workaround for this failing test_ztranslation

diff --git a/pypy/module/cpyext/test/test_ztranslation.py 
b/pypy/module/cpyext/test/test_ztranslation.py
--- a/pypy/module/cpyext/test/test_ztranslation.py
+++ b/pypy/module/cpyext/test/test_ztranslation.py
@@ -1,4 +1,13 @@
 from pypy.objspace.fake.checkmodule import checkmodule
+from pypy.module.cpyext import pyobject
 
 def test_cpyext_translates():
-    checkmodule('cpyext', '_ffi')
+    def from_ref(space, ref):
+        # XXX: avoid 'assert isinstance(w_type, W_TypeObject)' from the
+        # original from_ref, just return w_some_obj
+        return space.w_object
+    old, pyobject.from_ref = pyobject.from_ref, from_ref
+    try:
+        checkmodule('cpyext', '_ffi')
+    finally:
+        pyobject.from_ref = old
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to