Skip os.sendfile() test if threading module is not available.

This commit is contained in:
Giampaolo Rodolà 2011-02-25 20:01:05 +00:00
parent 1d52146a25
commit 46134645aa
1 changed files with 1 additions and 0 deletions

View 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):