summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo RodolĂ  <g.rodola@gmail.com>2011-02-25 20:01:05 +0000
committerGiampaolo RodolĂ  <g.rodola@gmail.com>2011-02-25 20:01:05 +0000
commit46134645aaf10aa7f871438d00ee7a61600307db (patch)
treed899c0c1e505608617f804a57a078fe780fb17e4
parent1d52146a25fdf534117602e77c7f3f539ea64294 (diff)
downloadcpython-git-46134645aaf10aa7f871438d00ee7a61600307db.tar.gz
Skip os.sendfile() test if threading module is not available.
-rw-r--r--Lib/test/test_os.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 59a2d63c8f..4965786ef9 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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):