Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 19, 2022
1 parent 1d5f957 commit a4b77bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/_py/path.py
Expand Up @@ -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]
Expand Down

0 comments on commit a4b77bf

Please sign in to comment.