diff options
author | David Robillard <d@drobilla.net> | 2025-03-24 17:38:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-03-24 17:40:50 -0400 |
commit | 64dba9134520547180d2e9404f5a7b592e560ae5 (patch) | |
tree | 5b458af0091423caff52b1ddbe1c0f44635d7eb8 /test/test_quiet.py | |
parent | 8785ef4b74e6a54cdd7c83e69c01a72d8e200314 (diff) | |
download | serd-64dba9134520547180d2e9404f5a7b592e560ae5.tar.gz serd-64dba9134520547180d2e9404f5a7b592e560ae5.tar.bz2 serd-64dba9134520547180d2e9404f5a7b592e560ae5.zip |
Always specify encoding to subprocess run functions
Diffstat (limited to 'test/test_quiet.py')
-rwxr-xr-x | test/test_quiet.py | 8 |
1 files changed, 6 insertions, 2 deletions
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 <d@drobilla.net> +# Copyright 2022-2025 David Robillard <d@drobilla.net> # 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 |