6
6
7
7
from astroquery import vizier
8
8
from astroquery .utils import commons
9
- from astroquery .exceptions import TableParseError
10
9
11
10
12
11
@pytest .mark .remote_data
@@ -124,9 +123,8 @@ def test_multicoord(self):
124
123
125
124
def test_findcatalog_maxcatalog (self ):
126
125
V = vizier .core .Vizier ()
127
- with pytest .raises (TableParseError , match = r"Failed to parse VIZIER result" ):
128
- cats = V .find_catalogs ('eclipsing binary' , max_catalogs = 5000 )
129
- assert len (cats ) >= 468
126
+ cats = V .find_catalogs ('eclipsing binary' , max_catalogs = 5000 )
127
+ assert len (cats ) >= 468
130
128
131
129
# with pytest.raises(ValueError) as exc:
132
130
# V.find_catalogs('eclipsing binary')
@@ -137,10 +135,9 @@ def test_findcatalog_maxcatalog(self):
137
135
def test_findcatalog_ucd (self ):
138
136
V = vizier .core .Vizier ()
139
137
ucdresult = V (ucd = 'time.age*' ).find_catalogs ('eclipsing binary' , max_catalogs = 5000 )
140
- with pytest .raises (TableParseError , match = r"Failed to parse VIZIER result" ):
141
- result = V .find_catalogs ('eclipsing binary' , max_catalogs = 5000 )
138
+ result = V .find_catalogs ('eclipsing binary' , max_catalogs = 5000 )
142
139
143
- assert len (ucdresult ) >= 12 # count as of 1/15/2018
144
- assert len (result ) >= 628
145
- # important part: we're testing that UCD is parsed and some catalogs are ruled out
146
- assert len (ucdresult ) < len (result )
140
+ assert len (ucdresult ) >= 12 # count as of 1/15/2018
141
+ assert len (result ) >= 628
142
+ # important part: we're testing that UCD is parsed and some catalogs are ruled out
143
+ assert len (ucdresult ) < len (result )
0 commit comments