]> granicus.if.org Git - python/commitdiff
Skip os.sendfile() test if threading module is not available.
authorGiampaolo Rodolà <g.rodola@gmail.com>
Fri, 25 Feb 2011 20:01:05 +0000 (20:01 +0000)
committerGiampaolo Rodolà <g.rodola@gmail.com>
Fri, 25 Feb 2011 20:01:05 +0000 (20:01 +0000)
Lib/test/test_os.py

index 59a2d63c8fe0764f5c33060386dac26854c7ffb0..4965786ef9e641ee125ef1ca3d9588b62cfe4bdf 100644 (file)
@@ -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):