shutil.rmtree() fails when used in Fedora (rpm) "mock" environment
c.buhtz at posteo.jp
c.buhtz at posteo.jp
Fri Oct 25 03:06:35 EDT 2024
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>
More information about the Python-list
mailing list