[Python-checkins] cpython: Skip test_enums in the absence of threading.

stefan.krah python-checkins at python.org
Tue Apr 15 22:42:04 CEST 2014


http://hg.python.org/cpython/rev/16243861604f
changeset:   90335:16243861604f
parent:      90331:ec3ea80758a4
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Apr 15 22:40:06 2014 +0200
summary:
  Skip test_enums in the absence of threading.

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


diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -42,6 +42,7 @@
 
 class GenericTests(unittest.TestCase):
 
+    @unittest.skipIf(threading is None, "test needs threading module")
     def test_enums(self):
         for name in dir(signal):
             sig = getattr(signal, name)

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


More information about the Python-checkins mailing list