...
This commit is contained in:
parent
cb936c1b5b
commit
750018e5fe
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ def on_csi(x):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue