[pypy-commit] pypy py3.5: Fix tests to match PyPy behaviour
rlamy
pypy.commits at gmail.com
Mon Nov 20 14:06:31 EST 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r93104:5c2561dd0c89
Date: 2017-11-20 19:06 +0000
http://bitbucket.org/pypy/pypy/changeset/5c2561dd0c89/
Log: Fix tests to match PyPy behaviour
diff --git a/lib-python/3/test/test_pydoc.py b/lib-python/3/test/test_pydoc.py
--- a/lib-python/3/test/test_pydoc.py
+++ b/lib-python/3/test/test_pydoc.py
@@ -141,7 +141,7 @@
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
-
+\x20\x20\x20\x20
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%%"><table width="100%%" summary="list"><tr><td width="25%%" valign=top><a href="builtins.html">builtins</a><br>
</td><td width="25%%" valign=top></td><td width="25%%" valign=top></td><td width="25%%" valign=top></td></tr></table></td></tr></table><p>
@@ -878,7 +878,7 @@
@requires_docstrings
def test_unbound_builtin_method(self):
self.assertEqual(self._get_summary_line(pickle.Pickler.dump),
- "dump(self, obj, /)")
+ "dump(self, obj)")
# these no longer include "self"
def test_bound_python_method(self):
@@ -891,13 +891,13 @@
s = StringIO()
p = pickle.Pickler(s)
self.assertEqual(self._get_summary_line(p.dump),
- "dump(obj, /) method of _pickle.Pickler instance")
+ "dump(obj) method of pickle._Pickler instance")
# this should *never* include self!
@requires_docstrings
def test_module_level_callable(self):
self.assertEqual(self._get_summary_line(os.stat),
- "stat(path, *, dir_fd=None, follow_symlinks=True)")
+ "stat(path, *, dir_fd=-100, follow_symlinks=True)")
@unittest.skipUnless(threading, 'Threading required for this test.')
More information about the pypy-commit
mailing list