From cb936c1b5b05c804001c0746f3b3887f57553f8b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 May 2023 12:24:59 +0530 Subject: [PATCH] Use /dev/null rather than /dev/tty for the test --- kitty_tests/datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty_tests/datatypes.py b/kitty_tests/datatypes.py index ecd026747..ea8db71d7 100644 --- a/kitty_tests/datatypes.py +++ b/kitty_tests/datatypes.py @@ -444,7 +444,7 @@ class TestDataTypes(BaseTest): self.assertTrue(is_path_in_temp_dir(os.path.join(prefix, path))) for path in ('/home/xy/d.png', '/tmp/../home/x.jpg'): self.assertFalse(is_path_in_temp_dir(os.path.join(path))) - for path in '/proc/self/cmdline /dev/tty'.split(): + for path in '/proc/self/cmdline /dev/null'.split(): if os.path.exists(path): with open(path) as pf: self.assertFalse(is_ok_to_read_image_file(path, pf.fileno()), path)