From a4b77bf459dd5ea0e69b55f09e598a52b5e90ebd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 19 Oct 2022 16:06:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/_pytest/_py/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/_py/path.py b/src/_pytest/_py/path.py index 0792da22810..a3c72dcbcf7 100644 --- a/src/_pytest/_py/path.py +++ b/src/_pytest/_py/path.py @@ -1221,7 +1221,7 @@ def pyimport(self, modname=None, ensuresyspath=True): mod.__file__ = str(self) sys.modules[modname] = mod try: - with open(str(self), 'rb') as f: + with open(str(self), "rb") as f: exec(f.read(), mod.__dict__) except: del sys.modules[modname]