]> granicus.if.org Git - python/commitdiff
Skip test_enums in the absence of threading.
authorStefan Krah <skrah@bytereef.org>
Tue, 15 Apr 2014 20:40:06 +0000 (22:40 +0200)
committerStefan Krah <skrah@bytereef.org>
Tue, 15 Apr 2014 20:40:06 +0000 (22:40 +0200)
Lib/test/test_signal.py

index 31e6d37e59ebf0c93002b5477935edf324f102c3..50cae0793b56a7ab8c55d9cf4a712733414cf2f1 100644 (file)
@@ -42,6 +42,7 @@ def ignoring_eintr(__func, *args, **kwargs):
 
 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)