homepage

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 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()
History
Date User Action Args
2010年06月20日 20:01:17techtoniksetrecipients: + techtonik, exarkun, pitrou, giampaolo.rodola, r.david.murray, michael.foord
2010年06月20日 20:01:14techtoniklinkissue9028 messages
2010年06月20日 20:01:14techtonikcreate

AltStyle によって変換されたページ (->オリジナル) /