Author: Armin Rigo <[email protected]>
Branch: py3.5-bytearray
Changeset: r88846:e4d0a0ab66d2
Date: 2016-12-03 12:45 +0100
http://bitbucket.org/pypy/pypy/changeset/e4d0a0ab66d2/
Log: passing test
diff --git a/pypy/objspace/std/test/test_bytearrayobject.py
b/pypy/objspace/std/test/test_bytearrayobject.py
--- a/pypy/objspace/std/test/test_bytearrayobject.py
+++ b/pypy/objspace/std/test/test_bytearrayobject.py
@@ -229,6 +229,10 @@
assert bytearray(b'ab').endswith(bytearray(b''), 2) is True
assert bytearray(b'ab').endswith(bytearray(b''), 3) is False
+ def test_startswith_self(self):
+ b = bytearray(b'abcd')
+ assert b.startswith(b)
+
def test_stringlike_conversions(self):
# methods that should return bytearray (and not str)
def check(result, expected):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit