From 4d737767bfd653b262b4b20933be2fad2adca5e8 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Fri, 9 Oct 2015 12:04:09 +0200 Subject: Bugfix: urllib-->urllib2. 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 --- testcases/functest_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py index c2e4bc6d..0977ce72 100644 --- a/testcases/functest_utils.py +++ b/testcases/functest_utils.py @@ -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 -- cgit 1.2.3-korg