File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
"""Tests for sliderule-python."""
2
2
3
3
import pytest
4
- from requests .exceptions import ConnectTimeout
4
+ from requests .exceptions import ConnectTimeout , ConnectionError
5
5
import sliderule
6
6
7
7
class TestLocal :
@@ -20,6 +20,6 @@ def test_gps2utc(self):
20
20
@pytest .mark .network
21
21
class TestRemote :
22
22
def test_init_badurl (self ):
23
- with pytest .raises (ConnectTimeout ):
23
+ with pytest .raises ( ( ConnectTimeout , ConnectionError ) ):
24
24
sliderule .set_rqst_timeout ((1 , 60 ))
25
25
sliderule .set_url ('incorrect.org' )
Original file line number Diff line number Diff line change 1
1
"""Tests for sliderule-python icesat2 api."""
2
2
3
3
import pytest
4
- from requests .exceptions import ConnectTimeout
4
+ from requests .exceptions import ConnectTimeout , ConnectionError
5
5
import sliderule
6
6
from sliderule import icesat2
7
7
from pathlib import Path
@@ -40,7 +40,7 @@ def test_toregion(self):
40
40
@pytest .mark .network
41
41
class TestRemote :
42
42
def test_init_badurl (self ):
43
- with pytest .raises (ConnectTimeout ):
43
+ with pytest .raises ( ( ConnectTimeout , ConnectionError ) ):
44
44
icesat2 .init ('incorrect.org' )
45
45
46
46
def test_get_version (self ):
You can’t perform that action at this time.
0 commit comments