Skip to content

Commit 819e54a

Browse files
committed
Allow path to be deleted in test
1 parent e7370ce commit 819e54a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_uninstall_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_purge_global_dir(monkeypatch, registry, tmp_path):
1616
UC._do_purge_global_dir(tmp_path, "SLOW WARNING", hive=registry.hive, subkey=registry.root)
1717
assert registry.getvalueandkind("", "Path") == (
1818
rf"C:\A;{tmp_path}\X;C:\B;%PTH%;C:\%D%\E", winreg.REG_SZ)
19-
assert not list(tmp_path.iterdir())
19+
assert not tmp_path.is_dir() or not list(tmp_path.iterdir())
2020

2121

2222
def test_null_purge(fake_config):

0 commit comments

Comments
 (0)