This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients belopolsky, eli.bendersky
Date 2010-08-07.06:50:53
SpamBayes Score 5.2655325e-11
Marked as misclassified No
Message-id <1281163855.6.0.447262951039.issue9323@psf.upfronthosting.co.za>
In-reply-to
Content
Looking at Lib/test/regrtest.py:

  if __name__ == '__main__':
      # Simplification for findtestdir().
      assert __file__ == os.path.abspath(sys.argv[0])

I'm not sure regrtest.py is prepared to be run from trace at all. Note that this error also happens when running 'python -m profile regrtest.py', so it's rather regrtest.py specific than trace.py specific.

Anyway, trace.py itself currently passes the cmd-line argument as __file__ and not its full path, which causes the breakage in regrtest.py. The full path *could* be easily passed, but I think we should address this problem from regrtest.py's side.
History
Date User Action Args
2010-08-07 06:50:56eli.benderskysetrecipients: + eli.bendersky, belopolsky
2010-08-07 06:50:55eli.benderskysetmessageid: <1281163855.6.0.447262951039.issue9323@psf.upfronthosting.co.za>
2010-08-07 06:50:53eli.benderskylinkissue9323 messages
2010-08-07 06:50:53eli.benderskycreate