]> granicus.if.org Git - python/commitdiff
- Issue #20070: Don't run test_urllib2net when network resources are not
authordoko@ubuntu.com <doko@ubuntu.com>
Thu, 26 Dec 2013 16:37:11 +0000 (17:37 +0100)
committerdoko@ubuntu.com <doko@ubuntu.com>
Thu, 26 Dec 2013 16:37:11 +0000 (17:37 +0100)
  enabled.

Lib/test/test_urllib2net.py
Misc/NEWS

index fba3ceac83f123e4217592febba595c7fd8ddb5d..ab638eae2fbb68b539cf31dd417fbf48977d40fb 100644 (file)
@@ -14,6 +14,8 @@ try:
 except ImportError:
     ssl = None
 
+support.requires("network")
+
 TIMEOUT = 60  # seconds
 
 
@@ -339,5 +341,4 @@ class TimeoutTest(unittest.TestCase):
 
 
 if __name__ == "__main__":
-    support.requires("network")
     unittest.main()
index f323b5866f5b1f708d67a34112cb541b5dfd87a6..4873297da6e3ea747aa6645a630b3768bc84f534 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -253,6 +253,9 @@ IDLE
 Tests
 -----
 
+- Issue #20070: Don't run test_urllib2net when network resources are not
+  enabled.
+
 - Issue #19938: Re-enabled test_bug_1333982 in test_dis, which had been
   disabled since 3.0 due to the changes in listcomp handling.