Replies: 1 comment 2 replies
-
I checked the log file with the failing tests mentioned in the linked issue and noticed that it runs under Python 3.13, but uses pyfakefs 5.2.4, which did not have support for Python 3.12 and 3.13 (it was published before the release of Python 3.12). Can you check if the problem also happens with older Python versions and /or if it occurs with a current pyfakefs version (3.7.1)? Preliminary support for 3.13 has only been introduced in 5.6, and official support with 5.7 (with the release of Python 3.13.0). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to request assistance with analysing a complex issue.
Maybe you have an idea or details what is going on. Currently it is not clear if PyFakeFS is a factor here. We also testing if the problem ocurse without it.
Summary
A unit test is using PyFakeFS and
tempfile.TemporaryDirectory()
in awith
context.When leaving the context
shutil.rmtree()
is used to clean up the temp-dir.In very specific environment this crashes. The environment is:
mock
(a tool not a Python package) which create achroot
environmentMore details
The initial report was bit-team/backintime#1911
The related unit test
https://github.com/bit-team/backintime/blob/c1d042ab67b9e117ac53e944518a0f4292fa075b/common/test/test_uniquenessset.py#L45
The CPython shutil code causing that crash
https://github.com/python/cpython/blob/75401febc91a449cc4f4391d663e9a96ce91bb6c/Lib/shutil.py#L695
Ongoing discussion about the issue also on python mailing list and the mock project.
Beta Was this translation helpful? Give feedback.
All reactions