Fix items missed in test_plat_other in last commit

This commit is contained in:
Andrew Senetar 2021-08-21 15:22:59 -05:00
parent 78a536abba
commit 007d84361a
Signed by: arsenetar
GPG Key ID: C63300DCE48AB2F1
1 changed files with 4 additions and 4 deletions

View File

@ -190,13 +190,13 @@ def test_trash_symlink(gen_ext_vol):
# Since is_parent uses realpath(), and our getdev uses is_parent,
# this should work
sl_dir = mktemp(prefix="s2t", dir=op.expanduser("~"))
os.mkdir(op.join(gen_ext_vol[0].trashTopdir, "subdir"), 0o700)
file_path = op.join(gen_ext_vol[0].trashTopdir, "subdir", gen_ext_vol[1])
os.mkdir(op.join(gen_ext_vol[0].trash_topdir, "subdir"), 0o700)
file_path = op.join(gen_ext_vol[0].trash_topdir, "subdir", gen_ext_vol[1])
os.symlink(op.join(gen_ext_vol[0].trashTopdir, "subdir"), sl_dir)
os.symlink(op.join(gen_ext_vol[0].trash_topdir, "subdir"), sl_dir)
s2t(op.join(sl_dir, gen_ext_vol[1]))
assert op.exists(file_path) is False
assert (
op.exists(op.join(gen_ext_vol[0].trashTopdir, ".Trash-" + str(os.getuid()), "files", gen_ext_vol[1],)) is True
op.exists(op.join(gen_ext_vol[0].trash_topdir, ".Trash-" + str(os.getuid()), "files", gen_ext_vol[1],)) is True