]> granicus.if.org Git - python/commitdiff
running tests enables us to discover that they actually work
authorBenjamin Peterson <benjamin@python.org>
Sun, 31 Jul 2011 04:39:39 +0000 (23:39 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sun, 31 Jul 2011 04:39:39 +0000 (23:39 -0500)
Lib/test/test_urllib2net.py

index 4894151cbe4148584344a2502b17db29e772e772..bd2c46772e9d10e0e36cf0f51de5e0256f9cb21a 100644 (file)
@@ -191,7 +191,7 @@ class OtherNetworkTests(unittest.TestCase):
         # Verify that those work properly. (#issue12576)
 
         URL = 'http://www.imdb.com' # No Connection:close
-        with test_support.transient_internet(url):
+        with test_support.transient_internet(URL):
             req = urllib2.urlopen(URL)
             res = req.read()
             self.assertTrue(res)