Skip test_enums in the absence of threading.

This commit is contained in:
Stefan Krah 2014-04-15 22:40:06 +02:00
parent 5d1f6c3b15
commit 63c4b24900
1 changed files with 1 additions and 0 deletions

View 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)