File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11
11
import astropy .units as u
12
12
from astropy .table import Table , Column
13
13
from astropy .io .votable import parse
14
- from astropy .io .votable .exceptions import W03 , W06 , W50
14
+ from astropy .io .votable .exceptions import W03 , W50
15
15
from astroquery import log
16
- from astroquery .utils .commons import ASTROPY_LT_5_3
17
- from contextlib import nullcontext
18
16
19
17
import numpy as np
20
18
@@ -274,10 +272,8 @@ def test_query_region_async_box(patch_get):
274
272
275
273
276
274
def test_filter_out_unreleased ():
277
- # The ``W06: Invalid UCD 'meta.ref.url;meta.curation'`` warning is only raised with older astropy
278
- with pytest .warns (W06 ) if ASTROPY_LT_5_3 else nullcontext ():
279
- with pytest .warns (W03 ):
280
- all_records = parse (data_path ('partial_unreleased.xml' ), verify = 'warn' ).get_first_table ().to_table ()
275
+ with pytest .warns (W03 ):
276
+ all_records = parse (data_path ('partial_unreleased.xml' ), verify = 'warn' ).get_first_table ().to_table ()
281
277
assert all_records [0 ]['obs_release_date' ] == '2017-08-02T03:51:19.728Z'
282
278
assert all_records [1 ]['obs_release_date' ] == '2218-01-02T16:51:00.728Z'
283
279
assert all_records [2 ]['obs_release_date' ] == ''
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ upload-dir = docs/_build/html
35
35
show-response = 1
36
36
37
37
[tool:pytest]
38
- minversion = 6.0
38
+ minversion = 7.4
39
39
norecursedirs = build docs/_build astroquery/irsa astroquery/nasa_exoplanet_archive astroquery/ned astroquery/ibe astroquery/irsa_dust astroquery/cds astroquery/sha astroquery/dace
40
40
testpaths = astroquery docs
41
41
doctest_plus = enabled
@@ -89,6 +89,9 @@ filterwarnings =
89
89
ignore: The ' strip_cdata' option of HTMLParser:DeprecationWarning
90
90
# Triggered in mast, likely boto related
91
91
ignore:datetime.datetime.utcnow\(\) is deprecated:DeprecationWarning
92
+ # CoverageWarnings triggered by one of the other plugins(?). Either case, explicitely
93
+ # ignore it here to have passing test for pytest 8.4.
94
+ ignore:Module astroquery was previously imported, but not measured:coverage.exceptions.CoverageWarning
92
95
93
96
markers =
94
97
bigdata: marks tests that are expected to trigger a large download (deselect with ' -m "not bigdata"' )
Original file line number Diff line number Diff line change 51
51
oldestdeps: pytest-doctestplus ==0.13
52
52
oldestdeps: requests ==2.25
53
53
oldestdeps: keyring ==15.0
54
- oldestdeps: pytest ==6.0
54
+ oldestdeps: pytest ==7.4
55
55
oldestdeps: beautifulsoup4 ==4.9
56
- oldestdeps-alldeps: mocpy ==0.9
56
+ oldestdeps-alldeps: mocpy ==0.12
57
57
oldestdeps-alldeps: regions ==0.5
58
58
59
59
online: pytest-custom_exit_code
You can’t perform that action at this time.
0 commit comments