Skip to content

Commit

Permalink
Add encoding to open() call
Browse files Browse the repository at this point in the history
With addition of unspecified-encoding checker this call
needs an encoding.
  • Loading branch information
DanielNoord committed Jul 27, 2021
1 parent dbb9ccb commit f00bdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _check_output_text(self, _, expected_output, actual_output):
if os.path.exists(self._test_file.expected_output):
os.remove(self._test_file.expected_output)
return
with open(self._test_file.expected_output, "w") as f:
with open(self._test_file.expected_output, "w", encoding="utf-8") as f:
writer = csv.writer(f, dialect="test")
for line in actual_output:
writer.writerow(line.to_csv())
Expand Down

0 comments on commit f00bdd8

Please sign in to comment.