From: Giampaolo RodolĂ  Date: Fri, 25 Feb 2011 20:01:05 +0000 (+0000) Subject: Skip os.sendfile() test if threading module is not available. X-Git-Tag: v3.3.0a1~3073 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46134645aaf10aa7f871438d00ee7a61600307db;p=python Skip os.sendfile() test if threading module is not available. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 59a2d63c8f..4965786ef9 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1352,6 +1352,7 @@ class SendfileTestServer(asyncore.dispatcher, threading.Thread): raise +@unittest.skipUnless(threading is not None, "test needs threading module") @unittest.skipUnless(hasattr(os, 'sendfile'), "test needs os.sendfile()") class TestSendfile(unittest.TestCase):