From: Stefan Krah Date: Tue, 15 Apr 2014 20:40:06 +0000 (+0200) Subject: Skip test_enums in the absence of threading. X-Git-Tag: v3.5.0a1~1861 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63c4b24900c9efa6aa57badbfbc9e7bc74677172;p=python Skip test_enums in the absence of threading. --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 31e6d37e59..50cae0793b 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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)