From 708c0727f9067cbf88f970f080125b7ec3128e24 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 26 May 2010 17:25:28 +0000 Subject: [PATCH] Issue #7449: Skip test_socketserver if threading support is disabled --- Lib/test/test_socketserver.py | 1 + Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index a478bd45d7a..d4c4f63c920 100644 --- a/Lib/test/test_socketserver.py +++ b/Lib/test/test_socketserver.py @@ -61,6 +61,7 @@ def simple_subprocess(testcase): testcase.assertEquals(72 << 8, status) +@unittest.skipUnless(threading, 'Threading required for this test.') class SocketServerTest(unittest.TestCase): """Test all socket servers.""" diff --git a/Misc/NEWS b/Misc/NEWS index e1b82a685d7..e313acc2a41 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -75,6 +75,8 @@ Extension Modules Tests ----- +- Issue #7449: Skip test_socketserver if threading support is disabled + - On darwin, ``test_site`` assumed that a framework build was being used, leading to a failure where four directories were expected for site-packages instead of two in a non-framework build.