Commits

Brian Kearns committed 8a2e9e0

fix test_bytebuffer on win32

  • Participants
  • Parent commits ba11a9b

Comments (0)

Files changed (1)

File pypy/module/__pypy__/test/test_bytebuffer.py

         assert str(b) == "\x00xy" + "\x00" * 7
         b[4:8:2] = 'zw'
         assert str(b) == "\x00xy\x00z\x00w" + "\x00" * 3
-        b[6:10] = u'#'
-        assert str(b) == "\x00xy\x00z\x00#" + "\x00" * 3
+        r = str(buffer(u'#'))
+        b[6:6+len(r)] = u'#'
+        assert str(b[:6+len(r)]) == "\x00xy\x00z\x00" + r