From 5bc2052fc6ae259ad99230b681f1a2c47666cb3c Mon Sep 17 00:00:00 2001 From: CodyCBakerPhD Date: Wed, 4 Sep 2024 17:24:09 -0400 Subject: [PATCH] fix windows --- tests/streaming_cli_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/streaming_cli_tests.py b/tests/streaming_cli_tests.py index 8348af04a..e9c5e5046 100644 --- a/tests/streaming_cli_tests.py +++ b/tests/streaming_cli_tests.py @@ -74,7 +74,7 @@ def test_dandiset_streaming_cli_saved_report(tmpdir: py.path.local): expected_report = io.readlines() # Different platforms maybe have different indices for start and end of test reports - report_start = test_report.index(f"0 CRITICAL{os.linesep}") + report_start = test_report.index(f"0 CRITICAL\n") expected_report_length = 38 report_end = report_start + expected_report_length assert test_report[report_start:report_end] == expected_report[14:] @@ -107,7 +107,7 @@ def test_dandiset_streaming_cli_with_version_saved_report(tmpdir: py.path.local) expected_report = io.readlines() # Different platforms maybe have different indices for start and end of test reports - report_start = test_report.index(f"0 CRITICAL{os.linesep}") + report_start = test_report.index(f"0 CRITICAL\n") expected_report_length = 38 report_end = report_start + expected_report_length assert test_report[report_start:report_end] == expected_report[14:]