Commits

Armin Rigo committed 91defbf

Don't support bytearray slicing right now

  • Participants
  • Parent commits d646fef
  • Branches jit-ordereddict

Comments (0)

Files changed (1)

File rpython/jit/metainterp/test/test_bytearray.py

         assert res == 610478
 
     def test_slice(self):
+        py.test.skip("XXX later")
         def fn(n, m):
             x = bytearray(str(n))
             x = x[1:5]
             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