From 12971a37e121c5761bbecab32dbca24231a59065 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 18:23:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/_pytest/tmpdir.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py index 4cf3714bc..12dc463a2 100644 --- a/src/_pytest/tmpdir.py +++ b/src/_pytest/tmpdir.py @@ -161,6 +161,7 @@ def get_user() -> Optional[str]: try: # In some exotic environments, getpass may not be importable. import getpass + return getpass.getuser() except (ImportError, KeyError): return None