From: Victor Stinner Date: Wed, 26 May 2010 17:25:28 +0000 (+0000) Subject: Issue #7449: Skip test_socketserver if threading support is disabled X-Git-Tag: v2.7rc1~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=708c0727f9067cbf88f970f080125b7ec3128e24;p=python Issue #7449: Skip test_socketserver if threading support is disabled --- diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index a478bd45d7..d4c4f63c92 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 e1b82a685d..e313acc2a4 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.