Skip to content

Commit f7f41b0

Browse files
Alexander SnorkinAlexander Snorkin
authored andcommitted
test_progress_bar_print win linesep fix
1 parent 6de9e09 commit f7f41b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/callbacks/test_progress_bar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ def test_progress_bar_print(tqdm_write, tmpdir):
386386
assert tqdm_write.call_count == 3
387387
assert tqdm_write.call_args_list == [
388388
call("training_step", end="", file=None, nolock=False),
389-
call("validation_step", end="\n", file=sys.stderr, nolock=False),
390-
call("test_step", end="\n", file=None, nolock=False),
389+
call("validation_step", end=os.linesep, file=sys.stderr, nolock=False),
390+
call("test_step", end=os.linesep, file=None, nolock=False),
391391
]
392392

393393

0 commit comments

Comments
 (0)