Skip to content

Commit ba1b56b

Browse files
committed
fix more 'flake8' complaints
1 parent 0198bd6 commit ba1b56b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

fitsio/tests/test_header.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@
77
from ..fitslib import FITS, read_header, write
88
from ..header import FITSHDR
99
from ..hdu.base import INVALID_HDR_CHARS
10-
import fitsio
1110

1211

1312
def test_free_form_string():
1413
with tempfile.TemporaryDirectory() as tmpdir:
1514
fname = os.path.join(tmpdir, 'test.fits')
1615
with open(fname, 'w') as f:
17-
s = ("SIMPLE = T / Standard FITS " +
18-
"BITPIX = 16 / number of bits per data pixel " +
19-
"NAXIS = 0 / number of data axes " +
20-
"EXTEND = T / File contains extensions " +
21-
"PHOTREF = 'previous MegaCam' / Source: cum.photcat " +
22-
"EXTRA = 7 / need another line following PHOTREF " +
23-
"END "
16+
s = ("SIMPLE = T / Standard FITS " + # noqa
17+
"BITPIX = 16 / number of bits per data pixel " + # noqa
18+
"NAXIS = 0 / number of data axes " + # noqa
19+
"EXTEND = T / File contains extensions " + # noqa
20+
"PHOTREF = 'previous MegaCam' / Source: cum.photcat " + # noqa
21+
"EXTRA = 7 / need another line following PHOTREF " + # noqa
22+
"END " # noqa
2423
)
2524
f.write(s + ' ' * (2880-len(s)))
2625
hdr = read_header(fname)
27-
assert(hdr['PHOTREF'] == 'previous MegaCam')
26+
assert hdr['PHOTREF'] == 'previous MegaCam'
2827

2928

3029
def test_add_delete_and_update_records():

0 commit comments

Comments
 (0)