33f5390a62
Because some functions are patched twice (like `os.rename()`), stopping the patches in the same order they were started can result in restoration of one of the patches. For example: ``` fn = os.rename # Patch nesting order: 1 then 2 os.rename = patch_1(fn) os.rename = patch_2(patch_1(fn)) # Unpatch 1 then 2: A still-patched function is restored os.rename = fn os.rename = patch_1(fn) # Unpatch 2 then 1: The original function is restored os.rename = patch_1(fn) os.rename = fn ``` Fixes #365 |
||
---|---|---|
.. | ||
conftest.py | ||
dotbot_plugin_context_plugin.py | ||
dotbot_plugin_directory.py | ||
dotbot_plugin_dispatcher_no_plugins.py | ||
dotbot_plugin_file.py | ||
dotbot_plugin_issue_357.py | ||
test_bin_dotbot.py | ||
test_clean.py | ||
test_cli.py | ||
test_config.py | ||
test_create.py | ||
test_link.py | ||
test_noop.py | ||
test_shell.py | ||
test_shim.py |