Skip to content

Commit 3337382

Browse files
committed
FIX: Fix line endings for Windows runner
1 parent b5aecba commit 3337382

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_historical_bento.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import collections
44
import datetime as dt
5+
import sys
56
from io import BytesIO
67
from pathlib import Path
78
from typing import Callable
@@ -488,6 +489,9 @@ def test_mbo_to_csv_writes_expected_file_to_disk(
488489
b",A,3723500000000,1,0,647784973094,128,17883,1170355\n"
489490
)
490491

492+
if sys.platform == "win32":
493+
expected = expected.replace(b"\n", b"\r\n")
494+
491495
assert written == expected
492496

493497

@@ -523,6 +527,9 @@ def test_mbp_1_to_csv_with_no_options_writes_expected_file_to_disk(
523527
b"00,3720500000000,26,11,16,9\n"
524528
)
525529

530+
if sys.platform == "win32":
531+
expected = expected.replace(b"\n", b"\r\n")
532+
526533
assert written == expected
527534

528535

@@ -560,6 +567,9 @@ def test_mbp_1_to_csv_with_all_options_writes_expected_file_to_disk(
560567
b"28,17361,1170366,3720.2500000000005,3720.5000000000005,26,11,16,9,ESH1\n"
561568
)
562569

570+
if sys.platform == "win32":
571+
expected = expected.replace(b"\n", b"\r\n")
572+
563573
assert written == expected
564574

565575
def test_mbo_to_json_with_no_options_writes_expected_file_to_disk(

0 commit comments

Comments
 (0)