]> granicus.if.org Git - python/commit
Issue #7449, last part (11): fix many tests if thread support is disabled
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 23:55:59 +0000 (23:55 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 23:55:59 +0000 (23:55 +0000)
commit6a10281d3359de890519c23d0318742018c843a3
tree71fdda13733f42f287602b72b60260cdc9afa6ba
parentc73a05f775013980a2a0de1c2a65b8542ee0bfa6
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
26 files changed:
Lib/sqlite3/test/dbapi.py
Lib/test/fork_wait.py
Lib/test/test_asyncore.py
Lib/test/test_bz2.py
Lib/test/test_contextlib.py
Lib/test/test_docxmlrpc.py
Lib/test/test_file2k.py
Lib/test/test_fork1.py
Lib/test/test_ftplib.py
Lib/test/test_httpservers.py
Lib/test/test_io.py
Lib/test/test_logging.py
Lib/test/test_poplib.py
Lib/test/test_queue.py
Lib/test/test_smtplib.py
Lib/test/test_socket.py
Lib/test/test_socketserver.py
Lib/test/test_telnetlib.py
Lib/test/test_thread.py
Lib/test/test_threaded_import.py
Lib/test/test_threadedtempfile.py
Lib/test/test_threading.py
Lib/test/test_threading_local.py
Lib/test/test_threadsignals.py
Lib/test/test_urllib2_localnet.py
Misc/NEWS