Resolve a Python 3.12 DeprecationWarning
This commit is contained in:
parent
840cd164d2
commit
eba0b24331
1 changed files with 4 additions and 1 deletions
|
@ -219,6 +219,9 @@ def root(standardize_tmp):
|
||||||
finally:
|
finally:
|
||||||
[patch.stop() for patch in patches]
|
[patch.stop() for patch in patches]
|
||||||
os.chdir(current_working_directory)
|
os.chdir(current_working_directory)
|
||||||
|
if sys.version_info >= (3, 12):
|
||||||
|
rmtree(current_root, onexc=rmtree_error_handler)
|
||||||
|
else:
|
||||||
rmtree(current_root, onerror=rmtree_error_handler)
|
rmtree(current_root, onerror=rmtree_error_handler)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue