mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Skip os.sendfile() test if threading module is not available.
This commit is contained in:
parent
1d52146a25
commit
46134645aa
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue