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, 07:59:28
Autres entêtes
Message-ID : <mailman.44.1729839578.4695.python-list@python.org>
References : 1 2 3
Thank you very much for all your responses.
Am 24.10.2024 17:17 schrieb Left Right:
To investigate this, I'd edit the file with the assertion and make it
print the actual value found in os.lstat and func. My guess is that
they are both somehow "lstat", but with different memory addresses.
My reporter provided this [1]. I think this is the relevant output:
=========================== short test summary info ============================
FAILED test/test_plugin_usercallback.py::SystemTest::test_local_snapshot - As...
FAILED test/test_uniquenessset.py::General::test_ctor_defaults - AssertionError
FAILED test/test_uniquenessset.py::General::test_deep_check - AssertionError
FAILED test/test_uniquenessset.py::General::test_fail_equal_without_equal_to
FAILED test/test_uniquenessset.py::General::test_size_mtime - AssertionError
FAILED test/test_uniquenessset.py::General::test_unique_myself - AssertionError
FAILED test/test_uniquenessset.py::General::test_unique_size_but_different_mtime
================== 7 failed, 267 passed, 16 skipped in 20.79s ==================
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
os.lstat=<built-in function lstat>
make: Leaving directory '/home/johannes/rpmbuild/BUILD/backintime-1.5.3-build/backintime-1.5.3-rc1/common'
RPM build errors:
[1] -- <
https://github.com/bit-team/backintime/issues/1911#issuecomment-2436851901>