~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/test/test_httpservers.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
 
342
342
 
343
343
def test_main(verbose=None):
 
344
    cwd = os.getcwd()
 
345
    env = os.environ.copy()
344
346
    try:
345
 
        cwd = os.getcwd()
346
347
        test_support.run_unittest(BaseHTTPServerTestCase,
347
348
                                  SimpleHTTPServerTestCase,
348
349
                                  CGIHTTPServerTestCase
349
350
                                  )
350
351
    finally:
 
352
        test_support.reap_children()
 
353
        os.environ.clear()
 
354
        os.environ.update(env)
351
355
        os.chdir(cwd)
352
356
 
353
357
if __name__ == '__main__':