From 1610d2288bb4e867403e8262d06fc26d24bfbf69 Mon Sep 17 00:00:00 2001 From: knj Date: Thu, 13 Jul 2023 13:37:52 +0200 Subject: [PATCH] change Path objects to strings in cmd line lists depending on python version, subprocess.run does not like them --- tests/codec_be_on_mr_selection/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/codec_be_on_mr_selection/__init__.py b/tests/codec_be_on_mr_selection/__init__.py index 2302cec387..34a307a739 100644 --- a/tests/codec_be_on_mr_selection/__init__.py +++ b/tests/codec_be_on_mr_selection/__init__.py @@ -94,7 +94,7 @@ def apply_error_pattern_on_bitstream( if in_bitstream == out_bitstream: in_bitstream = Path(tmpdir).joinpath(in_bitstream.name) - cmd = ["eid-xor", "-vbr", "-fer", in_bitstream, error_pattern, out_bitstream] + cmd = ["eid-xor", "-vbr", "-fer", str(in_bitstream), str(error_pattern), str(out_bitstream)] subprocess.run(cmd) -- GitLab