1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-01-22 14:41:40 +00:00

chore: Fix lint error in test_plat_other.py

This commit is contained in:
2025-12-31 01:32:01 +00:00
committed by GitHub
parent 9465587899
commit b23cba1ae2

View File

@@ -163,7 +163,7 @@ def test_trash_topdir(gen_ext_vol):
s2t(gen_ext_vol[2]) s2t(gen_ext_vol[2])
assert op.exists(gen_ext_vol[2]) is False assert op.exists(gen_ext_vol[2]) is False
if sys.platform == "darwin": if sys.platform == "darwin":
# On macOS, we can only verify the file was removed from original location # On macOS, we can only verify the file was removed from original location
pass pass
@@ -181,7 +181,7 @@ def test_trash_topdir(gen_ext_vol):
) )
is True is True
) )
cfg = ConfigParser() cfg = ConfigParser()
cfg.read(op.join(trash_dir, str(os.getuid()), "info", gen_ext_vol[1] + INFO_SUFFIX)) cfg.read(op.join(trash_dir, str(os.getuid()), "info", gen_ext_vol[1] + INFO_SUFFIX))
assert (gen_ext_vol[1] == cfg.get("Trash Info", "Path", raw=True)) is True assert (gen_ext_vol[1] == cfg.get("Trash Info", "Path", raw=True)) is True