Sujet : Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment
De : c.buhtz (at) *nospam* posteo.jp
Groupes : comp.lang.pythonDate : 25. Oct 2024, 09:06:35
Autres entêtes
Message-ID : <mailman.45.1729839997.4695.python-list@python.org>
References : 1 2 3
Hello Barry,
thank you for your reply and clarifying the Fedora aspects.
Am 25.10.2024 00:44 schrieb Barry:
What do you mean by the real file sustem?
You cannot write to the /usr file system. Is that what your tests do?
If so that needs changing.
Asking the right questions brings up to important details. While I was writing and trying to explain that the relevant test does use ""tempfile.TemporaryDirectory" as a context, I realized that "PyFakeFS" is used in the back [1].
But that makes me wonder. On a "regular" system all tests are running. So the issue might exist because of a combination of 3 factors: shutil.rmtree(), PyFakeFS in a chroot/mock build environment.
[1] -- <
https://github.com/bit-team/backintime/blob/c1d042ab67b9e117ac53e944518a0f4292fa075b/common/test/test_uniquenessset.py#L45>