test_tools fix: don't import analyze_dxp if no _thread module

This commit is contained in:
R David Murray 2012-04-04 22:37:50 -04:00
parent 54ac832a24
commit ca60b36735
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class TestSundryScripts(unittest.TestCase):
for fn in self.windows_only:
__import__(fn[:-3])
@unittest.skipIf(not support.threading, "test requires _thread module")
def test_analyze_dxp_import(self):
if hasattr(sys, 'getdxp'):
import analyze_dxp