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:]