Commit bb72395b authored by Vadim Mazaev's avatar Vadim Mazaev

Revert "fix linesep for windows"

This reverts commit 76d242b3.
parent 22609c21
......@@ -3,7 +3,6 @@ import io
from collections import Counter
from pathlib import Path
import typing as tp
import os
import pytest
from _pytest.capture import CaptureFixture # typing
......@@ -50,7 +49,7 @@ def test_tail(case: Case, tmp_path: Path) -> None:
output = io.BytesIO()
tail(test_file, lines_amount=case.lines, output=output)
answer = output.getvalue().decode().split(os.linesep)
answer = output.getvalue().decode().split('\n')
assert answer[-1] == ''
lines = answer[:-1]
......@@ -63,7 +62,7 @@ def test_real_log_file() -> None:
output = io.BytesIO()
tail(log_file, lines_amount=100, output=output)
answer = output.getvalue().decode().split(os.linesep)
answer = output.getvalue().decode().split('\n')
assert answer[-1] == ''
lines = answer[:-1]
......@@ -92,7 +91,7 @@ def test_stdout_by_default(capsys: CaptureFixture) -> None:
last_line = '[28/Sep/2019:15:57:03 +0000] py.manytask.org 91.228.178.70 "GET / HTTP/1.1" 200 0.130 8337 "0.128"'
tail(log_file, lines_amount=10)
answer = capsys.readouterr().out.split(os.linesep)
answer = capsys.readouterr().out.split('\n')
assert answer[-1] == ''
lines = answer[:-1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment