Message108244
| Author |
techtonik |
| Recipients |
exarkun, giampaolo.rodola, michael.foord, pitrou, r.david.murray, techtonik |
| Date |
2010年06月20日.20:01:14 |
| SpamBayes Score |
0.023300376 |
| Marked as misclassified |
No |
| Message-id |
<AANLkTin9AGj2i104JqQpIUuVfuMYx4zQ67I_fapeVV-Z@mail.gmail.com> |
| In-reply-to |
<1277063672.26.0.635512356697.issue9028@psf.upfronthosting.co.za> |
| Content |
> 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() |
|