From 190666dc8aff1c87c83ad60b8c507b7bfb714769 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Mar 2022 20:16:09 +0530 Subject: [PATCH] Check that non-ascii paths work in cwd reporting --- kitty_tests/shell_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index effb05a3a..0f919b790 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -144,7 +144,7 @@ RPS1="{rps1}" pty.wait_till(lambda: 'ab' in pty.screen_contents()) self.assertTrue(pty.screen.last_reported_cwd.endswith(self.home_dir)) self.assertIn('%s^G%s', pty.screen_contents()) - q = os.path.join(self.home_dir, 'testing-cwd-notification') + q = os.path.join(self.home_dir, 'testing-cwd-notification-🐱') os.mkdir(q) pty.send_cmd_to_child(f'cd {q}') pty.wait_till(lambda: pty.screen.last_reported_cwd.endswith(q)) @@ -277,7 +277,7 @@ PS1="{ps1}" self.assertTrue(pty.screen.last_reported_cwd.endswith(self.home_dir)) pty.send_cmd_to_child('echo $HISTFILE') pty.wait_till(lambda: '.bash_history' in pty.screen_contents()) - q = os.path.join(self.home_dir, 'testing-cwd-notification') + q = os.path.join(self.home_dir, 'testing-cwd-notification-🐱') os.mkdir(q) pty.send_cmd_to_child(f'cd {q}') pty.wait_till(lambda: pty.screen.last_reported_cwd.endswith(q))