diff options
Diffstat (limited to 'Lib/test/test_asynchat.py')
-rw-r--r-- | Lib/test/test_asynchat.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py index 5501c2defc..14528d8800 100644 --- a/Lib/test/test_asynchat.py +++ b/Lib/test/test_asynchat.py @@ -1,11 +1,13 @@ -# test asynchat -- requires threading +# test asynchat -import thread # If this fails, we can't test this module import asyncore, asynchat, socket, threading, time import unittest import sys from test import test_support +# Skip tests if thread module does not exist. +test_support.import_module('thread') + HOST = test_support.HOST SERVER_QUIT = 'QUIT\n' |