[pypy-commit] pypy jit-ordereddict: Don't support bytearray slicing right now
arigo
noreply at buildbot.pypy.org
Wed Dec 25 23:12:06 CET 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: jit-ordereddict
Changeset: r68552:91defbfab17a
Date: 2013-12-25 23:11 +0100
http://bitbucket.org/pypy/pypy/changeset/91defbfab17a/
Log: Don't support bytearray slicing right now
diff --git a/rpython/jit/metainterp/test/test_bytearray.py b/rpython/jit/metainterp/test/test_bytearray.py
--- a/rpython/jit/metainterp/test/test_bytearray.py
+++ b/rpython/jit/metainterp/test/test_bytearray.py
@@ -62,6 +62,7 @@
assert res == 610478
def test_slice(self):
+ py.test.skip("XXX later")
def fn(n, m):
x = bytearray(str(n))
x = x[1:5]
@@ -69,3 +70,13 @@
return int(str(x))
res = self.interp_operations(fn, [610978, 1])
assert res == 1597
+
+ def test_bytearray_from_bytearray(self):
+ def fn(n, m):
+ x = bytearray(str(n))
+ y = bytearray(x)
+ x[m] = 0x34
+ return int(str(x)) + int(str(y))
+
+ res = self.interp_operations(fn, [610978, 3])
+ assert res == 610478 + 610978
More information about the pypy-commit
mailing list