Skip to content

Commit 8ecc126

Browse files
committed
Fix coverage from not including starlink in test suite anymore
1 parent e82be56 commit 8ecc126

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_fitsheader.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def check_tpv(header):
7575
header = galsim.FitsHeader(file_name=file_name, dir=dir, hdu=0)
7676
check_tpv(header)
7777
check_pickle(header)
78+
# Can also pass the hdu itself.
79+
with pyfits.open(os.path.join(dir,file_name)) as hdu_list:
80+
header = galsim.FitsHeader(hdu_list=hdu_list[0])
81+
check_tpv(header)
82+
check_pickle(header)
7883
# If you pass in a pyfits Header object, that should also work
7984
with pyfits.open(os.path.join(dir,file_name)) as hdu_list:
8085
header = galsim.FitsHeader(header=hdu_list[0].header)

0 commit comments

Comments
 (0)