Skip to content

Commit 677c41a

Browse files
authored
Merge pull request #2519 from bsipocz/lamda_fix_remote_and_warning
DOC: Fixing online test failure for lamda
2 parents 8c3e869 + 8766059 commit 677c41a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

astroquery/lamda/tests/test_lamda_remote.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
@pytest.mark.remote_data
88
def test_query():
9-
result = lamda.Lamda.query(mol='co')
9+
with pytest.warns(UserWarning, match='The first time'):
10+
result = lamda.Lamda.query(mol='co')
1011
assert [len(r) for r in result] == [2, 40, 41]
1112
collider_dict = result[0]
1213
assert set(collider_dict.keys()) == set(['PH2', 'OH2'])

docs/lamda/lamda.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ query, use:
1515
.. doctest-remote-data::
1616

1717
>>> from astroquery.lamda import Lamda
18-
>>> Lamda.molecule_dict
18+
>>> Lamda.molecule_dict # doctest: +IGNORE_OUTPUT
1919
{'catom': 'http://home.strw.leidenuniv.nl/~moldata/datafiles/catom.dat',
2020
'c+': 'http://home.strw.leidenuniv.nl/~moldata/datafiles/c+.dat',
2121
'c+@uv': 'http://home.strw.leidenuniv.nl/~moldata/datafiles/[email protected]',

0 commit comments

Comments
 (0)