From 46134645aaf10aa7f871438d00ee7a61600307db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Giampaolo=20Rodol=C3=A0?= Date: Fri, 25 Feb 2011 20:01:05 +0000 Subject: [PATCH] Skip os.sendfile() test if threading module is not available. --- Lib/test/test_os.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.50.1