Author: Martin Matusiak <[email protected]>
Branch: py3.3
Changeset: r72554:f1c6ae47c0d4
Date: 2014-07-27 11:03 +0200
http://bitbucket.org/pypy/pypy/changeset/f1c6ae47c0d4/
Log: fix repr test_builtin_function to accept pypy repr for string split
method
diff --git a/lib-python/3/test/test_reprlib.py
b/lib-python/3/test/test_reprlib.py
--- a/lib-python/3/test/test_reprlib.py
+++ b/lib-python/3/test/test_reprlib.py
@@ -140,8 +140,12 @@
# Functions
eq(repr(hash), '<built-in function hash>')
# Methods
- self.assertTrue(repr(''.split).startswith(
- '<built-in method split of str object at 0x'))
+ self.assertTrue(any((
+ # cpython
+ repr(''.split).startswith('<built-in method split of str object at
0x'),
+ # pypy
+ repr(''.split) == "<bound method str.split of ''>",
+ )))
def test_range(self):
eq = self.assertEqual
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit