From 5dde31f80cfff0df2f38d5ab41fd03d4ca598ea1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Mar 2022 11:52:36 +0530 Subject: [PATCH] DRYer --- kitty_tests/ssh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty_tests/ssh.py b/kitty_tests/ssh.py index c7244561d..e2535f182 100644 --- a/kitty_tests/ssh.py +++ b/kitty_tests/ssh.py @@ -157,7 +157,9 @@ copy --exclude */w.* d1 pty.wait_till(lambda: '/cwd' in pty.screen_contents()) def test_ssh_bootstrap_with_different_launchers(self): - for launcher in ('sh', 'bash', 'zsh', 'fish'): + for launcher in self.all_possible_sh: + if 'python' in launcher: + continue for sh in self.all_possible_sh: if sh == 'sh' or 'python' in sh: q = shutil.which(launcher)