Skip to content

Commit

Permalink
STYL: Remove unneeded csvFile.clos()
Browse files Browse the repository at this point in the history
Not needed as `cvsFile` is used in a `with` construction.
  • Loading branch information
JoostJM committed Feb 15, 2017
1 parent b2caace commit cdeac9f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/testUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ def writeCSV(self, data, fileName):
for h in header:
row = row + [thisCase.get(h, "N/A")]
csvFileWriter.writerow(row)
csvFile.close()
self._logger.info('Wrote to file %s', fileName)
else:
self._logger.info('No test cases run, aborting file write to %s', fileName)

0 comments on commit cdeac9f

Please sign in to comment.