diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-10-28 14:47:15 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-10-28 14:47:15 (GMT) |
commit | b3438b8ae3f889b148703ae96276c20957ec1277 (patch) | |
tree | 6a23f8b0f97c9554003155429a68e4cb6f83ef95 /Lib/test/regrtest.py | |
parent | b4bddf510c3b88e7ac67428bc67960ac449f83cf (diff) | |
download | cpython-b3438b8ae3f889b148703ae96276c20957ec1277.zip cpython-b3438b8ae3f889b148703ae96276c20957ec1277.tar.gz cpython-b3438b8ae3f889b148703ae96276c20957ec1277.tar.bz2 |
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.
........
................
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 0c01cd2..0ee8bcc 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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() |