Skip to content

Commit 41249c4

Browse files
committed
Replace pedantic from VOTable parsing in tests
The `pedantic` option for `parse()` and `parse_single_table()` functions in `astropy.io.votable` has been deprecated since astropy/astropy#12129 in favour of the `verify` option. This commit replaces the uses of the deprecated option in `astroquery` tests.
1 parent a4619eb commit 41249c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/casda/tests/test_casda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def test_query_region_async_box(patch_get):
221221

222222

223223
def test_filter_out_unreleased():
224-
all_records = parse(data_path('partial_unreleased.xml'), pedantic=False).get_first_table().to_table()
224+
all_records = parse(data_path('partial_unreleased.xml'), verify='warn').get_first_table().to_table()
225225
assert all_records[0]['obs_release_date'] == '2017-08-02T03:51:19.728Z'
226226
assert all_records[1]['obs_release_date'] == '2218-01-02T16:51:00.728Z'
227227
assert all_records[2]['obs_release_date'] == ''

0 commit comments

Comments
 (0)