···11-diff --git a/kitty_tests/ssh.py b/kitty_tests/ssh.py
22-index 1f424146..57620334 100644
33---- a/kitty_tests/ssh.py
44-+++ b/kitty_tests/ssh.py
55-@@ -197,7 +197,7 @@ def test_ssh_login_shell_detection(self):
66- expected_login_shell = pwd.getpwuid(os.geteuid()).pw_shell
77- for m in methods:
88- for sh in self.all_possible_sh:
99-- if 'python' in sh:
1010-+ if 'python' in sh or '/sbin/nologin' in expected_login_shell:
1111- continue
1212- with self.subTest(sh=sh, method=m), tempfile.TemporaryDirectory() as tdir:
1313- pty = self.check_bootstrap(sh, tdir, test_script=f'{m}; echo "$login_shell"; exit 0', SHELL_INTEGRATION_VALUE='')