]> granicus.if.org Git - python/commitdiff
Issue #7449: Skip test_socketserver if threading support is disabled
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 26 May 2010 17:25:28 +0000 (17:25 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 26 May 2010 17:25:28 +0000 (17:25 +0000)
Lib/test/test_socketserver.py
Misc/NEWS

index a478bd45d7ab25ff625359cf17763aa779eda0ba..d4c4f63c920a21044e6ac69cc335f8e7054c81f8 100644 (file)
@@ -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."""
 
index e1b82a685d78dc747a3622a349432f7bfa9cf63d..e313acc2a415f957360cee112c76bde1cfbbd8cd 100644 (file)
--- 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.