Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r63719:0aea4b24a65c
Date: 2013-04-27 01:54 +0200
http://bitbucket.org/pypy/pypy/changeset/0aea4b24a65c/

Log:    Fix _cffi_backendi/test/test_translation.py

diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -108,6 +108,12 @@
         self._seen_extras = []
         ObjSpace.__init__(self, config=config)
 
+        # Be sure to annotate W_SliceObject constructor.
+        # In Python2, this is triggered by W_InstanceObject.__getslice__.
+        def build_slice():
+            self.newslice(self.w_None, self.w_None, self.w_None)
+        self._seen_extras.append(build_slice)
+
     def float_w(self, w_obj):
         is_root(w_obj)
         return NonConstant(42.5)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to