Skip to content

Commit 008c424

Browse files
author
Toto Lin
authored
Merge pull request #67 from YanWQ-monad/patch-1
Fix test_noipstyle_incorrect failed on Windows
2 parents 4c54f89 + 23b7bbf commit 008c424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyaron/tests/compare_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def test_noipstyle_incorrect(self):
4444
io = IO("test_compare_incorrect.in", "test_compare_incorrect.out")
4545

4646
io.output_writeln("test123 \ntest123\n")
47-
with open("test_another_incorrect.out", "w") as f:
48-
f.write("test123\r\ntest124 ")
47+
with open("test_another_incorrect.out", "wb") as f:
48+
f.write(b"test123\r\ntest124 ")
4949

5050
try:
5151
with captured_output() as (out, err):

0 commit comments

Comments
 (0)