mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +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
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipUnless(threading is not None, "test needs threading module")
|
||||||
@unittest.skipUnless(hasattr(os, 'sendfile'), "test needs os.sendfile()")
|
@unittest.skipUnless(hasattr(os, 'sendfile'), "test needs os.sendfile()")
|
||||||
class TestSendfile(unittest.TestCase):
|
class TestSendfile(unittest.TestCase):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue