Merged revisions 75525,75530,75922 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r75525 | r.david.murray | 2009-10-19 12:33:43 -0400 (Mon, 19 Oct 2009) | 12 lines

  Merged revisions 75524 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r75524 | r.david.murray | 2009-10-19 12:28:24 -0400 (Mon, 19 Oct 2009) | 6 lines

    Eliminate warning message that looks like an error message.  When it was
    added not finding Lib/test in the path indicated something was wrong,
    but when running regtest using "python -m" Lib/test isn't typically in
    the path, so this message is now more disturbing than it is helpful.
  ........
................
  r75530 | r.david.murray | 2009-10-19 14:06:17 -0400 (Mon, 19 Oct 2009) | 10 lines

  Merged revisions 75528 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r75528 | r.david.murray | 2009-10-19 13:53:58 -0400 (Mon, 19 Oct 2009) | 4 lines

    Clarify error report message, and don't recommend running in verbose
    mode for more information if we are already running in verbose mode.
  ........
................
  r75922 | r.david.murray | 2009-10-28 10:07:51 -0400 (Wed, 28 Oct 2009) | 9 lines

  Merged revisions 75920 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r75920 | r.david.murray | 2009-10-28 10:03:43 -0400 (Wed, 28 Oct 2009) | 2 lines

    Remove variable that is no longer used.
  ........
................
This commit is contained in:
R. David Murray 2009-10-28 14:47:15 +00:00
parent b4bddf510c
commit b3438b8ae3
2 changed files with 3 additions and 4 deletions

View File

@ -1227,11 +1227,9 @@ if __name__ == '__main__':
# much of the testing framework relies on the globals in the
# test.support module.
mydir = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
i = pathlen = len(sys.path)
i = len(sys.path)
while i >= 0:
i -= 1
if os.path.abspath(os.path.normpath(sys.path[i])) == mydir:
del sys.path[i]
if len(sys.path) == pathlen:
print('Could not find %r in sys.path to remove it' % mydir)
main()

View File

@ -857,7 +857,8 @@ def _run_suite(suite):
elif len(result.failures) == 1 and not result.errors:
err = result.failures[0][1]
else:
err = "errors occurred; run in verbose mode for details"
err = "multiple errors occurred"
if not verbose: err += "; run in verbose mode for details"
raise TestFailed(err)