[issue9028] test_support.run_unittest cmdline options and arguments
anatoly techtonik
report at bugs.python.org
Sun Jun 20 22:01:17 CEST 2010
anatoly techtonik <techtonik at gmail.com> added the comment:
> If you use Python 2.7 then the following at the end of the test module enables the same command line features that David Murray pointed you to:
>
> if __name__ == '__main__':
> unittest.main()
Unfortunately, test_httpservers.py from stdlib contains this code:
def test_main(verbose=None):
try:
cwd = os.getcwd()
test_support.run_unittest(BaseHTTPServerTestCase,
SimpleHTTPServerTestCase,
CGIHTTPServerTestCase
)
finally:
os.chdir(cwd)
if __name__ == '__main__':
test_main()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9028>
_______________________________________
More information about the Python-bugs-list
mailing list