[Python-checkins] cpython (3.2): test_tools fix: don't import analyze_dxp if no _thread module

r.david.murray python-checkins at python.org
Thu Apr 5 04:38:43 CEST 2012


http://hg.python.org/cpython/rev/058f9a9f97cd
changeset:   76108:058f9a9f97cd
branch:      3.2
parent:      76106:62dde5dd475e
user:        R David Murray <rdmurray at bitdance.com>
date:        Wed Apr 04 22:37:50 2012 -0400
summary:
  test_tools fix: don't import analyze_dxp if no _thread module

files:
  Lib/test/test_tools.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_tools.py b/Lib/test/test_tools.py
--- a/Lib/test/test_tools.py
+++ b/Lib/test/test_tools.py
@@ -63,6 +63,7 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list