diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 06:48:13 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 06:48:13 +0100 |
| commit | 93280e2059c01e16c51848720d8e4d52b2c3deee (patch) | |
| tree | aab058032455b428cfe05d98ec341f84028169f2 /client | |
| parent | 111f64fdcd2bb3c4d85684bf33207726b4aa3920 (diff) | |
| download | jasper-client-93280e2059c01e16c51848720d8e4d52b2c3deee.tar.gz jasper-client-93280e2059c01e16c51848720d8e4d52b2c3deee.zip | |
Using Diagnostics internet connection check in boot.py and test.py
Diffstat (limited to 'client')
| -rw-r--r-- | client/test.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/test.py b/client/test.py index a8f12be..9f23e00 100644 --- a/client/test.py +++ b/client/test.py @@ -13,6 +13,7 @@ from urllib2 import URLError, urlopen import test_mic import g2p import brain +from diagnose import Diagnostics DEFAULT_PROFILE = { 'prefers_email': False, @@ -23,11 +24,7 @@ DEFAULT_PROFILE = { def activeInternet(): - try: - urlopen('http://www.google.com', timeout=1) - return True - except URLError: - return False + return Diagnostics.check_network_connection() class TestMic(unittest.TestCase): |
