From 447a8a882380c45953b63018c002aabd262b996c Mon Sep 17 00:00:00 2001 From: Marcel Martin Date: Fri, 26 Jan 2024 14:14:42 +0100 Subject: [PATCH] test --- tests/test_files.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_files.py b/tests/test_files.py index 47667fa5..9a81c496 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -1,15 +1,17 @@ +import os from cutadapt.files import ProxyTextFile def test_proxy_test_file(): + newline = os.linesep.encode() pf = ProxyTextFile() print("hello", file=pf) - assert pf.drain() == b"hello\n" + assert pf.drain() == b"hello" + newline assert pf.drain() == b"" - print("world", file=pf) - print("foo", file=pf) - assert pf.drain() == b"world\nfoo\n" + print("world", file=pf, end="\n") + print("foo", file=pf, end="\n") + assert pf.drain() == b"world" + newline + b"foo" + newline def test_proxy_test_file_pickleable():