Eli Bendersky <eli...@gmail.com> added the comment:

Attaching a patch to unittest/test/test_program.py that fixes the sys.path 
warning in regrtest

What happens is that with the new capability added to unittest (running 
discovery when called as -m without args), a few tests in test_program now 
cause discovery to run. It's not a problem, but discovery plays with sys.path, 
which regrtest doesn't like. So I added restoration of sys.path to these tests 
in a manner similar to what the test/test_discovery.py test does.

----------
Added file: http://bugs.python.org/file19741/unittest.test.test_program.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10470>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to