Skip to content

Commit 679258b

Browse files
committed
Fixing pytest config to raise deprecations
1 parent 5ca7593 commit 679258b

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

setup.cfg

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,26 @@ minversion = 6.0
1717
norecursedirs = build docs/_build docs/gallery-examples
1818
doctest_plus = enabled
1919
text_file_format = rst
20-
addopts = -p no:warnings
2120
xfail_strict = true
2221
remote_data_strict = true
22+
filterwarnings =
23+
error
24+
ignore: Experimental:UserWarning:
25+
ignore: The LCOGT archive:UserWarning:
26+
# This is a temporary measure, all of these should be fixed:
27+
ignore::pytest.PytestUnraisableExceptionWarning
28+
ignore::numpy.VisibleDeprecationWarning
29+
ignore: unclosed file:ResourceWarning
30+
ignore::UserWarning
31+
ignore::astroquery.exceptions.InputWarning
32+
ignore::astropy.utils.exceptions.AstropyDeprecationWarning
33+
ignore::astropy.io.votable.exceptions.W50
34+
ignore::astropy.io.votable.exceptions.W06
35+
ignore::astropy.io.votable.exceptions.W03
36+
ignore::astropy.io.votable.exceptions.W21
37+
ignore::astropy.io.votable.exceptions.W42
38+
markers =
39+
bigdata: marks tests that are expected to trigger a large download (deselect with '-m "not bigdata"')
2340

2441
[ah_bootstrap]
2542
auto_use = True

0 commit comments

Comments
 (0)