Skip to content

Commit 92b1ae0

Browse files
committed
Explicitly skip COMMENT and HISTORY in comparing headers
1 parent 7ae83e3 commit 92b1ae0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

astroquery/astrometry_net/tests/test_astrometry_net_remote.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def test_solve_image_detect_source_local():
119119
expected_result = fits.getheader(os.path.join(DATA_DIR,
120120
'thumbnail-wcs-sol-from-photutils.fit'))
121121
for key in result:
122+
if key == 'COMMENT' or key == 'HISTORY':
123+
continue
122124
try:
123125
difference = expected_result[key] - result[key]
124126
except TypeError:
@@ -152,6 +154,8 @@ def test_solve_timeout_behavior():
152154
'test-wcs-sol.fit'))
153155

154156
for key in result:
157+
if key == 'COMMENT' or key == 'HISTORY':
158+
continue
155159
try:
156160
difference = expected_result[key] - result[key]
157161
except TypeError:

0 commit comments

Comments
 (0)