Author: Maciej Fijalkowski <[email protected]>
Branch: fix-strbuf
Changeset: r78652:7b73c5d11ce0
Date: 2015-07-24 12:03 +0200
http://bitbucket.org/pypy/pypy/changeset/7b73c5d11ce0/
Log: failing test
diff --git a/pypy/objspace/std/strbufobject.py
b/pypy/objspace/std/strbufobject.py
--- a/pypy/objspace/std/strbufobject.py
+++ b/pypy/objspace/std/strbufobject.py
@@ -67,7 +67,6 @@
return self
-delegation_dict = {}
for key, value in W_BytesObject.typedef.rawdict.iteritems():
if not isinstance(value, interp2app):
continue
diff --git a/pypy/objspace/std/test/test_strbufobject.py
b/pypy/objspace/std/test/test_strbufobject.py
--- a/pypy/objspace/std/test/test_strbufobject.py
+++ b/pypy/objspace/std/test/test_strbufobject.py
@@ -83,3 +83,9 @@
a = 'a'
a += 'b'
raises(TypeError, "a += 5")
+
+ def test_mix_strings_format(self):
+ a = 'a'
+ a += 'b'
+ assert 'foo%s' % a == 'fooab'
+ assert (a + '%s') % ('foo',) == 'bfoo'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit