mirror of https://github.com/python/cpython
Skip os.sendfile() test if threading module is not available.
This commit is contained in:
parent
1d52146a25
commit
46134645aa
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue