[pypy-svn] pypy default: Update to not check for the exact error message on non-CPython

arigo commits-noreply at bitbucket.org
Mon Feb 7 19:50:45 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41682:f9a321017a4d
Date: 2011-02-07 19:30 +0100
http://bitbucket.org/pypy/pypy/changeset/f9a321017a4d/

Log:	Update to not check for the exact error message on non-CPython
	implementations.

diff --git a/lib-python/2.7.0/test/test_format.py b/lib-python/modified-2.7.0/test/test_format.py
copy from lib-python/2.7.0/test/test_format.py
copy to lib-python/modified-2.7.0/test/test_format.py
--- a/lib-python/2.7.0/test/test_format.py
+++ b/lib-python/modified-2.7.0/test/test_format.py
@@ -242,7 +242,7 @@
             try:
                 testformat(formatstr, args)
             except exception, exc:
-                if str(exc) == excmsg:
+                if str(exc) == excmsg or not test_support.check_impl_detail():
                     if verbose:
                         print "yes"
                 else:


More information about the Pypy-commit mailing list