summaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-10-09 12:04:09 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2015-10-09 12:04:09 +0200
commit4d737767bfd653b262b4b20933be2fad2adca5e8 (patch)
tree26f8534a0479815835662c7153d541035aa3f954 /testcases
parent295fe1dd4b70dc33c9da15006811a65863d19e51 (diff)
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 <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases')
-rw-r--r--testcases/functest_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index c2e4bc6d5..0977ce720 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