Cleanup previous PR

This commit is contained in:
Kovid Goyal
2023-03-20 07:42:10 +05:30
parent 122ba17df6
commit 1bed92bed1
2 changed files with 3 additions and 4 deletions

View File

@@ -176,8 +176,7 @@ env COLORTERM
try:
expected_login_shell = pwd.getpwuid(os.geteuid()).pw_shell
except KeyError:
with suppress(KeyError):
self.skipTest('Skipping login shell detection as getpwuid() failed to read login shell')
self.skipTest('Skipping login shell detection as getpwuid() failed to read login shell')
if os.path.basename(expected_login_shell) == 'nologin':
self.skipTest('Skipping login shell detection as login shell is set to nologin')
for m in methods: