Skip to content

Commit 60edbf9

Browse files
committed
TST: change test to be Python 3.13 compatible
1 parent a19aac1 commit 60edbf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/utils/tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def test_class_or_instance():
4545
assert SimpleQueryClass.query() == "class"
4646
U = SimpleQueryClass()
4747
assert U.query() == "instance"
48-
assert SimpleQueryClass.query.__doc__ == " docstring "
48+
# Indent changes in Python 3.13 thus cannot equate
49+
# See https://github.com/python/cpython/issues/81283
50+
assert "docstring" in SimpleQueryClass.query.__doc__
4951

5052

5153
@pytest.mark.parametrize(('coordinates'),

0 commit comments

Comments
 (0)