[issue9028] test_support.run_unittest cmdline options and arguments
Michael Foord
report at bugs.python.org
Sun Jun 20 21:54:32 CEST 2010
Michael Foord <michael at voidspace.org.uk> added the comment:
"""But I want to execute test from my own patched copy of test_httpservers.py with whatever python I want. I.e.
> C:\Python27\python.exe Z:\python-cgi-tests\test_httpservers.py ...
"""
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()
If you are using earlier versions of Python you can use unittest2 (which also works with Python 2.7).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9028>
_______________________________________
More information about the Python-bugs-list
mailing list