Skip to content

Commit a5489f8

Browse files
committed
Relax rmtree assertion to allow multiple calls in fs isolation test
1 parent a8764cf commit a5489f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/test_fs_isolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,4 +586,4 @@ def mock_is_dir(self):
586586
# Should have called unlink for file and symlink (2 times)
587587
assert mock_unlink.call_count == 2
588588
# Should have called rmtree for directory (1 time)
589-
mock_rmtree.assert_called_once_with(dir_path, ignore_errors=True)
589+
mock_rmtree.assert_any_call(dir_path, ignore_errors=True)

0 commit comments

Comments
 (0)