]> granicus.if.org Git - python/commitdiff
Eliminate warning message that looks like an error message. When it was
authorR. David Murray <rdmurray@bitdance.com>
Mon, 19 Oct 2009 16:28:24 +0000 (16:28 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 19 Oct 2009 16:28:24 +0000 (16:28 +0000)
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.

Lib/test/regrtest.py

index d8456dff622c4f0f3812a861a6e08bfb84221212..eb7155a8bc40bf2617ef0e0d5ecbd6d597caab92 100755 (executable)
@@ -1445,6 +1445,4 @@ if __name__ == '__main__':
         i -= 1
         if os.path.abspath(os.path.normpath(sys.path[i])) == mydir:
             del sys.path[i]
-    if '--slaveargs' not in sys.argv and len(sys.path) == pathlen:
-        print 'Could not find %r in sys.path to remove it' % mydir
     main()