From f1ab0ea8f45d5814eb44d4c9e4681122a233a934 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:10:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- extension_helpers/tests/__init__.py | 6 ++---- extension_helpers/tests/py311_backports.py | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/extension_helpers/tests/__init__.py b/extension_helpers/tests/__init__.py index 62b53c8..02f3bfc 100644 --- a/extension_helpers/tests/__init__.py +++ b/extension_helpers/tests/__init__.py @@ -29,10 +29,8 @@ def run_cmd(cmd, args, path=None, raise_error=True): if raise_error and return_code != 0: raise RuntimeError( - "The command `{}` with args {!r} exited with code {}.\n" - "Stdout:\n\n{}\n\nStderr:\n\n{}".format( - cmd, list(args), return_code, streams[0], streams[1] - ) + f"The command `{cmd}` with args {list(args)!r} exited with code {return_code}.\n" + f"Stdout:\n\n{streams[0]}\n\nStderr:\n\n{streams[1]}" ) return streams + (return_code,) diff --git a/extension_helpers/tests/py311_backports.py b/extension_helpers/tests/py311_backports.py index c235b81..3632947 100644 --- a/extension_helpers/tests/py311_backports.py +++ b/extension_helpers/tests/py311_backports.py @@ -48,6 +48,7 @@ agrees to be bound by the terms and conditions of this License Agreement. """ + import os from contextlib import AbstractContextManager