[pypy-commit] pypy py3k: Fix _cffi_backendi/test/test_translation.py

amauryfa noreply at buildbot.pypy.org
Sun Apr 28 16:37:15 CEST 2013


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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)


More information about the pypy-commit mailing list