From 64dba9134520547180d2e9404f5a7b592e560ae5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 24 Mar 2025 17:38:41 -0400 Subject: Always specify encoding to subprocess run functions --- test/test_quiet.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/test_quiet.py') diff --git a/test/test_quiet.py b/test/test_quiet.py index 676284bb..ff53e26e 100755 --- a/test/test_quiet.py +++ b/test/test_quiet.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2022 David Robillard +# Copyright 2022-2025 David Robillard # SPDX-License-Identifier: ISC """Test quiet command-line option.""" @@ -13,7 +13,11 @@ import serd_test_util as util args = util.wrapper_args(__doc__, True) command = shlex.split(args.wrapper) + [args.serdi, "-q", args.input] proc = subprocess.run( - command, check=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE + command, + encoding="utf-8", + check=False, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, ) assert proc.returncode != 0 -- cgit v1.2.1