Skip to content

Commit

Permalink
fix: adds default line ending for csv writing.
Browse files Browse the repository at this point in the history
the csv library defaults to using CRLF line endings if not specified.
  • Loading branch information
jaydrennan committed Dec 13, 2023
1 parent aaf826c commit 1b6ffd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def pytest_sessionfinish(session, exitstatus):

# Write updated, sorted list of node IDs to file
with open(cuda_test_tracker_filepath, "w", newline="") as file:
writer = csv.writer(file)
writer = csv.writer(file, lineterminator="\n")
for node_id in sorted(updated_node_ids):
writer.writerow([node_id])

Expand Down

0 comments on commit 1b6ffd6

Please sign in to comment.