Code Review
/
functest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
295fe1d
)
Bugfix: urllib-->urllib2.
77/2377/1
author
jose.lausuch
<jose.lausuch@ericsson.com>
Fri, 9 Oct 2015 10:04:09 +0000
(12:04 +0200)
committer
jose.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
patch
|
blob
|
history
diff --git
a/testcases/functest_utils.py
b/testcases/functest_utils.py
index
c2e4bc6
..
0977ce7
100644
(file)
--- 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 urllib
2
.URLError:
return False