commit | 46134645aaf10aa7f871438d00ee7a61600307db | [log] [tgz] |
---|---|---|
author | Giampaolo RodolĂ <g.rodola@gmail.com> | Fri Feb 25 20:01:05 2011 +0000 |
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | Fri Feb 25 20:01:05 2011 +0000 |
tree | d899c0c1e505608617f804a57a078fe780fb17e4 | |
parent | 1d52146a25fdf534117602e77c7f3f539ea64294 [diff] |
Skip os.sendfile() test if threading module is not available.
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 59a2d63..4965786 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py
@@ -1352,6 +1352,7 @@ raise +@unittest.skipUnless(threading is not None, "test needs threading module") @unittest.skipUnless(hasattr(os, 'sendfile'), "test needs os.sendfile()") class TestSendfile(unittest.TestCase):