diff Lib/test/test_httpservers.py @ 61046:3a0484200034 legacy-trunk

Issue #7449, last part (11): fix many tests if thread support is disabled * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
author Victor Stinner <victor.stinner@haypocalc.com>
date Tue, 27 Apr 2010 23:55:59 +0000
parents 5ac0aae28f4c
children b99f527e0d77
line wrap: on
line diff
--- a/Lib/test/test_httpservers.py	Tue Apr 27 23:51:16 2010 +0000
+++ b/Lib/test/test_httpservers.py	Tue Apr 27 23:55:59 2010 +0000
@@ -16,10 +16,10 @@
 import urllib
 import httplib
 import tempfile
-import threading
 
 import unittest
 from test import test_support
+threading = test_support.import_module('threading')
 
 
 class NoLogRequestHandler: