[pypy-svn] r58904 - pypy/branch/2.5-merge/lib-python/modified-2.5.2/test
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 10 14:49:24 CEST 2008
Author: arigo
Date: Fri Oct 10 14:49:23 2008
New Revision: 58904
Added:
pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_extcall.py
- copied, changed from r58903, pypy/branch/2.5-merge/lib-python/2.5.2/test/test_extcall.py
Log:
(antocuni, arigo)
Don't depend on dictionary order in an output test.
Copied: pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_extcall.py (from r58903, pypy/branch/2.5-merge/lib-python/2.5.2/test/test_extcall.py)
==============================================================================
--- pypy/branch/2.5-merge/lib-python/2.5.2/test/test_extcall.py (original)
+++ pypy/branch/2.5-merge/lib-python/modified-2.5.2/test/test_extcall.py Fri Oct 10 14:49:23 2008
@@ -140,7 +140,10 @@
try:
g(1, 2, 3, a=4, b=5, *(6, 7), **{'a':8, 'b':9})
except TypeError, err:
- print err
+ # The error message could mention either 'a' or 'b', as both are
+ # provided twice. We enforce a consistent output...
+ msg = str(err)
+ print msg.replace("'a'", "'b'")
else:
print "should raise TypeError: keyword parameter redefined"
More information about the Pypy-commit
mailing list