summaryrefslogtreecommitdiff
path: root/tests/test_functional.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r--tests/test_functional.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py
index 3512981d2..513823a05 100644
--- a/tests/test_functional.py
+++ b/tests/test_functional.py
@@ -65,8 +65,9 @@ class LintModuleOutputUpdate(testutils.LintModuleTest):
os.remove(self._test_file.expected_output)
return
with open(self._test_file.expected_output, "w", encoding="utf-8") as f:
+ writer = csv.writer(f, dialect="test")
for line in actual_output:
- print(":".join(line.to_csv()), file=f)
+ writer.writerow(line.to_csv())
def get_tests():