Skip to content

Commit 2374698

Browse files
committed
FIX: PEP8 adjustment for auto-generated test files
1 parent 9c5781e commit 2374698

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/checkspecs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def test_specs(self, uri):
212212
('.' * len(uri.split('.'))),
213213
'from ..%s import %s' % (uri.split('.')[-1], c),
214214
'']
215-
cmd.append('def test_%s_inputs():' % c)
215+
cmd.append('\ndef test_%s_inputs():' % c)
216216
input_fields = ''
217217
for traitname, trait in sorted(classinst.input_spec().traits(transient=None).items()):
218218
input_fields += '%s=dict(' % traitname
@@ -256,7 +256,7 @@ def test_specs(self, uri):
256256

257257
if not os.path.exists(nonautotest):
258258
with open(testfile, 'at') as fp:
259-
cmd = ['def test_%s_outputs():' % c]
259+
cmd = ['\ndef test_%s_outputs():' % c]
260260
input_fields = ''
261261
for traitname, trait in sorted(classinst.output_spec().traits(transient=None).items()):
262262
input_fields += '%s=dict(' % traitname
@@ -278,7 +278,7 @@ def test_specs(self, uri):
278278
for key, metadata in list(output_map.items()):
279279
for metakey, value in list(metadata.items()):
280280
yield assert_equal, getattr(outputs.traits()[key], metakey), value"""]
281-
fp.writelines('\n'.join(cmd) + '\n\n')
281+
fp.writelines('\n'.join(cmd) + '\n')
282282

283283
for traitname, trait in sorted(classinst.output_spec().traits(transient=None).items()):
284284
for key in sorted(trait.__dict__):

0 commit comments

Comments
 (0)