Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r88133:c52c751b137d
Date: 2016-11-03 19:30 +0100
http://bitbucket.org/pypy/pypy/changeset/c52c751b137d/
Log: Two tests (failing so far)
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
@@ -545,3 +545,6 @@
raises(TypeError, 'bytearray(b"%b") % "hello world"')
assert bytearray(b'%b %b') % (b'a', bytearray(b'f f e')) == b'a f f e'
"""
+
+ def test_format_bytes(self):
+ assert bytearray(b'<%s>') % b'abc' == b'<abc>'
diff --git a/pypy/objspace/std/test/test_bytesobject.py
b/pypy/objspace/std/test/test_bytesobject.py
--- a/pypy/objspace/std/test/test_bytesobject.py
+++ b/pypy/objspace/std/test/test_bytesobject.py
@@ -145,6 +145,9 @@
assert str(exc_info.value) in (expected1, expected2)
raises(TypeError, "None % 'abc'") # __rmod__
+ def test_format_bytes(self):
+ assert b'<%s>' % b'abc' == b'<abc>'
+
def test_split(self):
assert b"".split() == []
assert b"".split(b'x') == [b'']
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit