mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-12 01:46:14 +02:00
[Tests, Windows] fix tests that was failing on Windows due to linebreak issues
This commit is contained in:
parent
4cc74fed36
commit
1e40cdef06
2 changed files with 5 additions and 1 deletions
|
@ -190,6 +190,9 @@ def check_output_time_inline(context, text):
|
|||
def check_output_inline(context, text=None):
|
||||
text = text or context.text
|
||||
out = context.stdout_capture.getvalue()
|
||||
# make line endings consistent
|
||||
text = os.linesep.join(text.splitlines())
|
||||
out = os.linesep.join(out.splitlines())
|
||||
if isinstance(out, bytes):
|
||||
out = out.decode('utf-8')
|
||||
assert text in out, text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue