]> granicus.if.org Git - python/commitdiff
test_tools fix: don't import analyze_dxp if no _thread module
authorR David Murray <rdmurray@bitdance.com>
Thu, 5 Apr 2012 02:37:50 +0000 (22:37 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 5 Apr 2012 02:37:50 +0000 (22:37 -0400)
Lib/test/test_tools.py

index 8c9054a4b8affc2be884b91eb0067032737b392f..83a1e0df57ab1f6d20f7a2082c530817e86b3d31 100644 (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