Bugfix: urllib-->urllib2.
authorjose.lausuch <jose.lausuch@ericsson.com>
Fri, 9 Oct 2015 10:04:09 +0000 (12:04 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Fri, 9 Oct 2015 10:04:09 +0000 (12:04 +0200)
If there is no internet, it will not throw an error,
but it will quit as expected with a proper message.

Change-Id: I133d932d4713b6bb6f452736c71b38ce5c5a6310
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
testcases/functest_utils.py

index c2e4bc6..0977ce7 100644 (file)
@@ -335,7 +335,7 @@ def check_internet_connectivity(url='http://www.opnfv.org/'):
     try:
         urllib2.urlopen(url, timeout=5)
         return True
-    except urllib.URLError:
+    except urllib2.URLError:
         return False