From 750018e5feb0067700c1b96823ae805f6465abf3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 May 2023 12:25:46 +0530 Subject: [PATCH] ... --- 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 ea8db71d7..a90420a5e 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/null'.split(): + for path in ('/proc/self/cmdline', os.devnull): if os.path.exists(path): with open(path) as pf: self.assertFalse(is_ok_to_read_image_file(path, pf.fileno()), path)