From: R David Murray Date: Thu, 5 Apr 2012 02:37:50 +0000 (-0400) Subject: test_tools fix: don't import analyze_dxp if no _thread module X-Git-Tag: v3.3.0a3~312^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca60b367355062cd902d756755da954c9238cdd9;p=python test_tools fix: don't import analyze_dxp if no _thread module --- diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py index 8c9054a4b8..83a1e0df57 100644 --- a/Lib/test/test_tools.py +++ b/Lib/test/test_tools.py @@ -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