Skip to content

Commit 8766059

Browse files
committed
Fixing online test failure for lamda
1 parent fae02b8 commit 8766059

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)