>>> py3-pyfakefs: Building community/py3-pyfakefs 5.3.5-r1 (using abuild 3.13.0-r5) started Tue, 27 Aug 2024 08:18:59 +0000 >>> py3-pyfakefs: Checking sanity of /home/buildozer/aports/community/py3-pyfakefs/APKBUILD... >>> py3-pyfakefs: Analyzing dependencies... >>> py3-pyfakefs: Installing for build: build-base python3 py3-gpep517 py3-setuptools py3-wheel py3-pytest (1/32) Installing libbz2 (1.0.8-r6) (2/32) Installing libffi (3.4.6-r0) (3/32) Installing gdbm (1.24-r0) (4/32) Installing xz-libs (5.6.2-r0) (5/32) Installing mpdecimal (4.0.0-r0) (6/32) Installing libpanelw (6.5_p20240601-r0) (7/32) Installing sqlite-libs (3.46.1-r0) (8/32) Installing python3 (3.12.5-r1) (9/32) Installing python3-pycache-pyc0 (3.12.5-r1) (10/32) Installing pyc (3.12.5-r1) (11/32) Installing python3-pyc (3.12.5-r1) (12/32) Installing py3-installer (0.7.0-r2) (13/32) Installing py3-installer-pyc (0.7.0-r2) (14/32) Installing py3-gpep517 (16-r0) (15/32) Installing py3-gpep517-pyc (16-r0) (16/32) Installing py3-parsing (3.1.2-r1) (17/32) Installing py3-parsing-pyc (3.1.2-r1) (18/32) Installing py3-packaging (24.1-r0) (19/32) Installing py3-packaging-pyc (24.1-r0) (20/32) Installing py3-setuptools (70.3.0-r0) (21/32) Installing py3-setuptools-pyc (70.3.0-r0) (22/32) Installing py3-wheel (0.43.0-r0) (23/32) Installing py3-wheel-pyc (0.43.0-r0) (24/32) Installing py3-iniconfig (2.0.0-r1) (25/32) Installing py3-iniconfig-pyc (2.0.0-r1) (26/32) Installing py3-pluggy (1.5.0-r0) (27/32) Installing py3-pluggy-pyc (1.5.0-r0) (28/32) Installing py3-py (1.11.0-r3) (29/32) Installing py3-py-pyc (1.11.0-r3) (30/32) Installing py3-pytest (8.3.2-r0) (31/32) Installing py3-pytest-pyc (8.3.2-r0) (32/32) Installing .makedepends-py3-pyfakefs (20240827.081913) Executing busybox-1.36.1-r31.trigger OK: 305 MiB in 133 packages >>> py3-pyfakefs: Cleaning up srcdir >>> py3-pyfakefs: Cleaning up pkgdir >>> py3-pyfakefs: Cleaning up tmpdir >>> py3-pyfakefs: Fetching https://distfiles.alpinelinux.org/distfiles/edge/pyfakefs-5.3.5.tar.gz >>> py3-pyfakefs: Fetching https://distfiles.alpinelinux.org/distfiles/edge/pyfakefs-5.3.5.tar.gz >>> py3-pyfakefs: Checking sha512sums... pyfakefs-5.3.5.tar.gz: OK >>> py3-pyfakefs: Unpacking /var/cache/distfiles/pyfakefs-5.3.5.tar.gz... 2024-08-27 08:19:14,253 gpep517 INFO Building wheel via backend setuptools.build_meta 2024-08-27 08:19:14,292 root INFO running bdist_wheel 2024-08-27 08:19:14,316 root INFO running build 2024-08-27 08:19:14,316 root INFO running build_py 2024-08-27 08:19:14,320 root INFO creating build 2024-08-27 08:19:14,320 root INFO creating build/lib 2024-08-27 08:19:14,320 root INFO creating build/lib/pyfakefs 2024-08-27 08:19:14,321 root INFO copying pyfakefs/mox3_stubout.py -> build/lib/pyfakefs 2024-08-27 08:19:14,321 root INFO copying pyfakefs/fake_filesystem_unittest.py -> build/lib/pyfakefs 2024-08-27 08:19:14,321 root INFO copying pyfakefs/pytest_plugin.py -> build/lib/pyfakefs 2024-08-27 08:19:14,322 root INFO copying pyfakefs/patched_packages.py -> build/lib/pyfakefs 2024-08-27 08:19:14,322 root INFO copying pyfakefs/fake_path.py -> build/lib/pyfakefs 2024-08-27 08:19:14,322 root INFO copying pyfakefs/fake_open.py -> build/lib/pyfakefs 2024-08-27 08:19:14,323 root INFO copying pyfakefs/fake_filesystem.py -> build/lib/pyfakefs 2024-08-27 08:19:14,323 root INFO copying pyfakefs/fake_io.py -> build/lib/pyfakefs 2024-08-27 08:19:14,323 root INFO copying pyfakefs/fake_file.py -> build/lib/pyfakefs 2024-08-27 08:19:14,324 root INFO copying pyfakefs/fake_scandir.py -> build/lib/pyfakefs 2024-08-27 08:19:14,324 root INFO copying pyfakefs/extra_packages.py -> build/lib/pyfakefs 2024-08-27 08:19:14,324 root INFO copying pyfakefs/__init__.py -> build/lib/pyfakefs 2024-08-27 08:19:14,325 root INFO copying pyfakefs/fake_pathlib.py -> build/lib/pyfakefs 2024-08-27 08:19:14,325 root INFO copying pyfakefs/_version.py -> build/lib/pyfakefs 2024-08-27 08:19:14,325 root INFO copying pyfakefs/helpers.py -> build/lib/pyfakefs 2024-08-27 08:19:14,326 root INFO copying pyfakefs/fake_os.py -> build/lib/pyfakefs 2024-08-27 08:19:14,326 root INFO copying pyfakefs/fake_filesystem_shutil.py -> build/lib/pyfakefs 2024-08-27 08:19:14,327 root INFO creating build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,327 root INFO copying pyfakefs/pytest_tests/pytest_fixture_test.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,327 root INFO copying pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,327 root INFO copying pyfakefs/pytest_tests/pytest_fixture_param_test.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,328 root INFO copying pyfakefs/pytest_tests/example.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,328 root INFO copying pyfakefs/pytest_tests/conftest.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,328 root INFO copying pyfakefs/pytest_tests/pytest_plugin_test.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,328 root INFO copying pyfakefs/pytest_tests/__init__.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,329 root INFO copying pyfakefs/pytest_tests/pytest_doctest_test.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,329 root INFO copying pyfakefs/pytest_tests/pytest_module_fixture_test.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,329 root INFO copying pyfakefs/pytest_tests/pytest_plugin_failing_helper.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,330 root INFO copying pyfakefs/pytest_tests/io.py -> build/lib/pyfakefs/pytest_tests 2024-08-27 08:19:14,330 root INFO creating build/lib/pyfakefs/tests 2024-08-27 08:19:14,330 root INFO copying pyfakefs/tests/performance_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,331 root INFO copying pyfakefs/tests/mox3_stubout_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,331 root INFO copying pyfakefs/tests/all_tests_without_extra_packages.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,331 root INFO copying pyfakefs/tests/patched_packages_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,332 root INFO copying pyfakefs/tests/mox3_stubout_example.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,332 root INFO copying pyfakefs/tests/import_as_example.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,332 root INFO copying pyfakefs/tests/all_tests.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,332 root INFO copying pyfakefs/tests/example.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,333 root INFO copying pyfakefs/tests/fake_open_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,333 root INFO copying pyfakefs/tests/test_utils.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,333 root INFO copying pyfakefs/tests/fake_filesystem_shutil_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,334 root INFO copying pyfakefs/tests/fake_os_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,334 root INFO copying pyfakefs/tests/__init__.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,335 root INFO copying pyfakefs/tests/fake_filesystem_vs_real_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,335 root INFO copying pyfakefs/tests/dynamic_patch_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,335 root INFO copying pyfakefs/tests/fake_pathlib_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,336 root INFO copying pyfakefs/tests/fake_filesystem_unittest_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,336 root INFO copying pyfakefs/tests/fake_filesystem_glob_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,336 root INFO copying pyfakefs/tests/fake_filesystem_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,337 root INFO copying pyfakefs/tests/fake_stat_time_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,337 root INFO copying pyfakefs/tests/fake_tempfile_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,337 root INFO copying pyfakefs/tests/example_test.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,338 root INFO copying pyfakefs/tests/logsio.py -> build/lib/pyfakefs/tests 2024-08-27 08:19:14,338 root INFO creating build/lib/pyfakefs/tests/fixtures 2024-08-27 08:19:14,338 root INFO copying pyfakefs/tests/fixtures/config_module.py -> build/lib/pyfakefs/tests/fixtures 2024-08-27 08:19:14,338 root INFO copying pyfakefs/tests/fixtures/deprecated_property.py -> build/lib/pyfakefs/tests/fixtures 2024-08-27 08:19:14,339 root INFO copying pyfakefs/tests/fixtures/__init__.py -> build/lib/pyfakefs/tests/fixtures 2024-08-27 08:19:14,339 root INFO copying pyfakefs/tests/fixtures/module_with_attributes.py -> build/lib/pyfakefs/tests/fixtures 2024-08-27 08:19:14,339 root INFO running egg_info 2024-08-27 08:19:14,341 root INFO writing pyfakefs.egg-info/PKG-INFO 2024-08-27 08:19:14,342 root INFO writing dependency_links to pyfakefs.egg-info/dependency_links.txt 2024-08-27 08:19:14,343 root INFO writing entry points to pyfakefs.egg-info/entry_points.txt 2024-08-27 08:19:14,343 root INFO writing top-level names to pyfakefs.egg-info/top_level.txt 2024-08-27 08:19:14,348 root INFO reading manifest file 'pyfakefs.egg-info/SOURCES.txt' 2024-08-27 08:19:14,349 root INFO reading manifest template 'MANIFEST.in' 2024-08-27 08:19:14,350 root INFO adding license file 'COPYING' 2024-08-27 08:19:14,352 root INFO writing manifest file 'pyfakefs.egg-info/SOURCES.txt' 2024-08-27 08:19:14,353 root INFO copying pyfakefs/py.typed -> build/lib/pyfakefs 2024-08-27 08:19:14,361 root INFO installing to build/bdist.linux-loongarch64/wheel 2024-08-27 08:19:14,361 root INFO running install 2024-08-27 08:19:14,375 root INFO running install_lib 2024-08-27 08:19:14,378 root INFO creating build/bdist.linux-loongarch64 2024-08-27 08:19:14,378 root INFO creating build/bdist.linux-loongarch64/wheel 2024-08-27 08:19:14,378 root INFO creating build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,379 root INFO copying build/lib/pyfakefs/mox3_stubout.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,379 root INFO copying build/lib/pyfakefs/fake_filesystem_unittest.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,379 root INFO copying build/lib/pyfakefs/pytest_plugin.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,379 root INFO copying build/lib/pyfakefs/patched_packages.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,380 root INFO copying build/lib/pyfakefs/py.typed -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,380 root INFO creating build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,380 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_fixture_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,381 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,381 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_fixture_param_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,381 root INFO copying build/lib/pyfakefs/pytest_tests/example.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,381 root INFO copying build/lib/pyfakefs/pytest_tests/conftest.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,382 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_plugin_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,382 root INFO copying build/lib/pyfakefs/pytest_tests/__init__.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,382 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_doctest_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,382 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_module_fixture_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,383 root INFO copying build/lib/pyfakefs/pytest_tests/pytest_plugin_failing_helper.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,383 root INFO copying build/lib/pyfakefs/pytest_tests/io.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/pytest_tests 2024-08-27 08:19:14,383 root INFO copying build/lib/pyfakefs/fake_path.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,383 root INFO copying build/lib/pyfakefs/fake_open.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,384 root INFO copying build/lib/pyfakefs/fake_filesystem.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,384 root INFO copying build/lib/pyfakefs/fake_io.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,385 root INFO copying build/lib/pyfakefs/fake_file.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,385 root INFO copying build/lib/pyfakefs/fake_scandir.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,385 root INFO copying build/lib/pyfakefs/extra_packages.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,385 root INFO copying build/lib/pyfakefs/__init__.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,386 root INFO creating build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,386 root INFO copying build/lib/pyfakefs/tests/performance_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,386 root INFO copying build/lib/pyfakefs/tests/mox3_stubout_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,387 root INFO copying build/lib/pyfakefs/tests/all_tests_without_extra_packages.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,387 root INFO copying build/lib/pyfakefs/tests/patched_packages_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,387 root INFO copying build/lib/pyfakefs/tests/mox3_stubout_example.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,387 root INFO copying build/lib/pyfakefs/tests/import_as_example.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,388 root INFO copying build/lib/pyfakefs/tests/all_tests.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,388 root INFO copying build/lib/pyfakefs/tests/example.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,388 root INFO copying build/lib/pyfakefs/tests/fake_open_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,388 root INFO copying build/lib/pyfakefs/tests/test_utils.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,389 root INFO copying build/lib/pyfakefs/tests/fake_filesystem_shutil_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,389 root INFO copying build/lib/pyfakefs/tests/fake_os_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,390 root INFO copying build/lib/pyfakefs/tests/__init__.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,390 root INFO copying build/lib/pyfakefs/tests/fake_filesystem_vs_real_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,390 root INFO copying build/lib/pyfakefs/tests/dynamic_patch_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,390 root INFO creating build/bdist.linux-loongarch64/wheel/pyfakefs/tests/fixtures 2024-08-27 08:19:14,391 root INFO copying build/lib/pyfakefs/tests/fixtures/config_module.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests/fixtures 2024-08-27 08:19:14,391 root INFO copying build/lib/pyfakefs/tests/fixtures/deprecated_property.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests/fixtures 2024-08-27 08:19:14,391 root INFO copying build/lib/pyfakefs/tests/fixtures/__init__.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests/fixtures 2024-08-27 08:19:14,391 root INFO copying build/lib/pyfakefs/tests/fixtures/module_with_attributes.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests/fixtures 2024-08-27 08:19:14,392 root INFO copying build/lib/pyfakefs/tests/fake_pathlib_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,392 root INFO copying build/lib/pyfakefs/tests/fake_filesystem_unittest_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,392 root INFO copying build/lib/pyfakefs/tests/fake_filesystem_glob_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,393 root INFO copying build/lib/pyfakefs/tests/fake_filesystem_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,393 root INFO copying build/lib/pyfakefs/tests/fake_stat_time_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,393 root INFO copying build/lib/pyfakefs/tests/fake_tempfile_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,394 root INFO copying build/lib/pyfakefs/tests/example_test.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,394 root INFO copying build/lib/pyfakefs/tests/logsio.py -> build/bdist.linux-loongarch64/wheel/pyfakefs/tests 2024-08-27 08:19:14,394 root INFO copying build/lib/pyfakefs/fake_pathlib.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,394 root INFO copying build/lib/pyfakefs/_version.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,395 root INFO copying build/lib/pyfakefs/helpers.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,395 root INFO copying build/lib/pyfakefs/fake_os.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,395 root INFO copying build/lib/pyfakefs/fake_filesystem_shutil.py -> build/bdist.linux-loongarch64/wheel/pyfakefs 2024-08-27 08:19:14,396 root INFO running install_egg_info 2024-08-27 08:19:14,399 root INFO Copying pyfakefs.egg-info to build/bdist.linux-loongarch64/wheel/pyfakefs-5.3.5-py3.12.egg-info 2024-08-27 08:19:14,400 root INFO running install_scripts 2024-08-27 08:19:14,403 root INFO creating build/bdist.linux-loongarch64/wheel/pyfakefs-5.3.5.dist-info/WHEEL 2024-08-27 08:19:14,404 wheel INFO creating '/home/buildozer/aports/community/py3-pyfakefs/src/pyfakefs-5.3.5/.dist/.tmp-gfcye6ru/pyfakefs-5.3.5-py3-none-any.whl' and adding 'build/bdist.linux-loongarch64/wheel' to it 2024-08-27 08:19:14,404 wheel INFO adding 'pyfakefs/__init__.py' 2024-08-27 08:19:14,405 wheel INFO adding 'pyfakefs/_version.py' 2024-08-27 08:19:14,405 wheel INFO adding 'pyfakefs/extra_packages.py' 2024-08-27 08:19:14,405 wheel INFO adding 'pyfakefs/fake_file.py' 2024-08-27 08:19:14,406 wheel INFO adding 'pyfakefs/fake_filesystem.py' 2024-08-27 08:19:14,407 wheel INFO adding 'pyfakefs/fake_filesystem_shutil.py' 2024-08-27 08:19:14,408 wheel INFO adding 'pyfakefs/fake_filesystem_unittest.py' 2024-08-27 08:19:14,408 wheel INFO adding 'pyfakefs/fake_io.py' 2024-08-27 08:19:14,409 wheel INFO adding 'pyfakefs/fake_open.py' 2024-08-27 08:19:14,409 wheel INFO adding 'pyfakefs/fake_os.py' 2024-08-27 08:19:14,410 wheel INFO adding 'pyfakefs/fake_path.py' 2024-08-27 08:19:14,410 wheel INFO adding 'pyfakefs/fake_pathlib.py' 2024-08-27 08:19:14,411 wheel INFO adding 'pyfakefs/fake_scandir.py' 2024-08-27 08:19:14,411 wheel INFO adding 'pyfakefs/helpers.py' 2024-08-27 08:19:14,412 wheel INFO adding 'pyfakefs/mox3_stubout.py' 2024-08-27 08:19:14,412 wheel INFO adding 'pyfakefs/patched_packages.py' 2024-08-27 08:19:14,412 wheel INFO adding 'pyfakefs/py.typed' 2024-08-27 08:19:14,412 wheel INFO adding 'pyfakefs/pytest_plugin.py' 2024-08-27 08:19:14,413 wheel INFO adding 'pyfakefs/pytest_tests/__init__.py' 2024-08-27 08:19:14,413 wheel INFO adding 'pyfakefs/pytest_tests/conftest.py' 2024-08-27 08:19:14,413 wheel INFO adding 'pyfakefs/pytest_tests/example.py' 2024-08-27 08:19:14,414 wheel INFO adding 'pyfakefs/pytest_tests/io.py' 2024-08-27 08:19:14,414 wheel INFO adding 'pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py' 2024-08-27 08:19:14,414 wheel INFO adding 'pyfakefs/pytest_tests/pytest_doctest_test.py' 2024-08-27 08:19:14,414 wheel INFO adding 'pyfakefs/pytest_tests/pytest_fixture_param_test.py' 2024-08-27 08:19:14,415 wheel INFO adding 'pyfakefs/pytest_tests/pytest_fixture_test.py' 2024-08-27 08:19:14,415 wheel INFO adding 'pyfakefs/pytest_tests/pytest_module_fixture_test.py' 2024-08-27 08:19:14,415 wheel INFO adding 'pyfakefs/pytest_tests/pytest_plugin_failing_helper.py' 2024-08-27 08:19:14,415 wheel INFO adding 'pyfakefs/pytest_tests/pytest_plugin_test.py' 2024-08-27 08:19:14,416 wheel INFO adding 'pyfakefs/tests/__init__.py' 2024-08-27 08:19:14,416 wheel INFO adding 'pyfakefs/tests/all_tests.py' 2024-08-27 08:19:14,416 wheel INFO adding 'pyfakefs/tests/all_tests_without_extra_packages.py' 2024-08-27 08:19:14,417 wheel INFO adding 'pyfakefs/tests/dynamic_patch_test.py' 2024-08-27 08:19:14,417 wheel INFO adding 'pyfakefs/tests/example.py' 2024-08-27 08:19:14,417 wheel INFO adding 'pyfakefs/tests/example_test.py' 2024-08-27 08:19:14,418 wheel INFO adding 'pyfakefs/tests/fake_filesystem_glob_test.py' 2024-08-27 08:19:14,418 wheel INFO adding 'pyfakefs/tests/fake_filesystem_shutil_test.py' 2024-08-27 08:19:14,419 wheel INFO adding 'pyfakefs/tests/fake_filesystem_test.py' 2024-08-27 08:19:14,420 wheel INFO adding 'pyfakefs/tests/fake_filesystem_unittest_test.py' 2024-08-27 08:19:14,420 wheel INFO adding 'pyfakefs/tests/fake_filesystem_vs_real_test.py' 2024-08-27 08:19:14,421 wheel INFO adding 'pyfakefs/tests/fake_open_test.py' 2024-08-27 08:19:14,422 wheel INFO adding 'pyfakefs/tests/fake_os_test.py' 2024-08-27 08:19:14,424 wheel INFO adding 'pyfakefs/tests/fake_pathlib_test.py' 2024-08-27 08:19:14,425 wheel INFO adding 'pyfakefs/tests/fake_stat_time_test.py' 2024-08-27 08:19:14,425 wheel INFO adding 'pyfakefs/tests/fake_tempfile_test.py' 2024-08-27 08:19:14,425 wheel INFO adding 'pyfakefs/tests/import_as_example.py' 2024-08-27 08:19:14,426 wheel INFO adding 'pyfakefs/tests/logsio.py' 2024-08-27 08:19:14,426 wheel INFO adding 'pyfakefs/tests/mox3_stubout_example.py' 2024-08-27 08:19:14,426 wheel INFO adding 'pyfakefs/tests/mox3_stubout_test.py' 2024-08-27 08:19:14,426 wheel INFO adding 'pyfakefs/tests/patched_packages_test.py' 2024-08-27 08:19:14,427 wheel INFO adding 'pyfakefs/tests/performance_test.py' 2024-08-27 08:19:14,427 wheel INFO adding 'pyfakefs/tests/test_utils.py' 2024-08-27 08:19:14,427 wheel INFO adding 'pyfakefs/tests/fixtures/__init__.py' 2024-08-27 08:19:14,428 wheel INFO adding 'pyfakefs/tests/fixtures/config_module.py' 2024-08-27 08:19:14,428 wheel INFO adding 'pyfakefs/tests/fixtures/deprecated_property.py' 2024-08-27 08:19:14,428 wheel INFO adding 'pyfakefs/tests/fixtures/module_with_attributes.py' 2024-08-27 08:19:14,429 wheel INFO adding 'pyfakefs-5.3.5.dist-info/COPYING' 2024-08-27 08:19:14,429 wheel INFO adding 'pyfakefs-5.3.5.dist-info/METADATA' 2024-08-27 08:19:14,429 wheel INFO adding 'pyfakefs-5.3.5.dist-info/WHEEL' 2024-08-27 08:19:14,430 wheel INFO adding 'pyfakefs-5.3.5.dist-info/entry_points.txt' 2024-08-27 08:19:14,430 wheel INFO adding 'pyfakefs-5.3.5.dist-info/top_level.txt' 2024-08-27 08:19:14,430 wheel INFO adding 'pyfakefs-5.3.5.dist-info/RECORD' 2024-08-27 08:19:14,431 root INFO removing build/bdist.linux-loongarch64/wheel 2024-08-27 08:19:14,434 gpep517 INFO The backend produced .dist/pyfakefs-5.3.5-py3-none-any.whl pyfakefs-5.3.5-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0 rootdir: /home/buildozer/aports/community/py3-pyfakefs/src/pyfakefs-5.3.5 configfile: pyproject.toml plugins: pyfakefs-5.3.5 collected 2161 items pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py s [ 0%] pyfakefs/pytest_tests/pytest_fixture_param_test.py X.. [ 0%] pyfakefs/pytest_tests/pytest_module_fixture_test.py .. [ 0%] pyfakefs/pytest_tests/pytest_plugin_test.py ......... [ 0%] pyfakefs/tests/dynamic_patch_test.py ..... [ 0%] pyfakefs/tests/example_test.py ......Fs [ 1%] pyfakefs/tests/fake_filesystem_glob_test.py ......... [ 1%] pyfakefs/tests/fake_filesystem_shutil_test.py ...............FFFsFFFssss [ 2%] ssssssssssssssssssss.F.........sssssssssss [ 4%] pyfakefs/tests/fake_filesystem_test.py ................................. [ 6%] ........................................................................ [ 9%] ..............s........................................................s [ 13%] ........................................................................ [ 16%] ......................... [ 17%] pyfakefs/tests/fake_filesystem_unittest_test.py .........F.............. [ 18%] ....x...............................x..........................s.s.. [ 21%] pyfakefs/tests/fake_filesystem_vs_real_test.py ......................... [ 22%] .. [ 23%] pyfakefs/tests/fake_open_test.py ....................................... [ 24%] ................................ssssssssssssssssssssssssssssssssssssssss [ 28%] sssssssssssssssssssssssssssssss........ssssssss..s.ssss..sss............ [ 31%] ssssssssssss..........ssssssssss..s.....ssssssss.....sssss.....sss..ss.. [ 34%] ...sssss..................ssssssssssssssssss [ 36%] pyfakefs/tests/fake_os_test.py ......................................... [ 38%] ........................................................................ [ 42%] ........................................................................ [ 45%] ........................................................................ [ 48%] ...........................sssssssssssssssssssssssssssssssssssssssssssss [ 52%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 55%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 58%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 62%] sssssssssssssssssssssss................................................. [ 65%] ....................................ssssssssssssssssssssssssssssssssssss [ 68%] sssssssssssssssssssssssssssssssssssssssssssssssss.................s..... [ 72%] ..............................s......sssssssssssssssssssssssssssssssssss [ 75%] ssssssssssssss...........sssssssssss.................................... [ 78%] ...sssssssssssssss.............sssssssssssssss.............sssssssssssss [ 82%] ss.............sssssssssssssss.................sssssssssssss [ 84%] pyfakefs/tests/fake_pathlib_test.py ....s.ssssssssssssss..s......sssssss [ 86%] ss.....s.s......s....sssssssssssssssssss...s...s..ss.................sss [ 89%] ssssssssssssssssssssssssss............................................ss [ 93%] ssssssssssssssssssssssssssssssssssssssssss.....s [ 95%] pyfakefs/tests/fake_stat_time_test.py .......sssssss........ssssssss.... [ 96%] ...sssssss........ssssssss.....sssss......ssssss [ 99%] pyfakefs/tests/fake_tempfile_test.py .....F.. [ 99%] pyfakefs/tests/mox3_stubout_test.py ......... [100%] =================================== FAILURES =================================== ___________________________ TestExample.test_rm_tree ___________________________ self = def test_rm_tree(self): """Test example.rm_tree() using `shutil.rmtree()`.""" self.fs.create_dir("/test/dir1/dir2a") # os.mkdirs() works, too. os.makedirs("/test/dir1/dir2b") self.assertTrue(os.path.isdir("/test/dir1/dir2b")) self.assertTrue(os.path.isdir("/test/dir1/dir2a")) > example.rm_tree("/test/dir1") pyfakefs/tests/example_test.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pyfakefs/tests/example.py:136: in rm_tree shutil.rmtree(path) /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffed028900> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError _______________________ FakeShutilModuleTest.test_rmtree _______________________ self = def test_rmtree(self): directory = self.make_path("xyzzy") dir_path = os.path.join(directory, "subdir") self.create_dir(dir_path) file_path = os.path.join(directory, "subfile") self.create_file(file_path) self.assertTrue(os.path.exists(directory)) > shutil.rmtree(directory) pyfakefs/tests/fake_filesystem_shutil_test.py:87: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffecd8bba0> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError ______________ FakeShutilModuleTest.test_rmtree_non_existing_dir _______________ self = def test_rmtree_non_existing_dir(self): directory = "nonexisting" with self.assertRaises(OSError): > shutil.rmtree(directory) pyfakefs/tests/fake_filesystem_shutil_test.py:159: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError ________ FakeShutilModuleTest.test_rmtree_non_existing_dir_with_handler ________ self = def test_rmtree_non_existing_dir_with_handler(self): class NonLocal: pass def error_handler(_, path, _error_info): NonLocal.errorHandled = True NonLocal.errorPath = path directory = self.make_path("nonexisting") NonLocal.errorHandled = False NonLocal.errorPath = "" try: > shutil.rmtree(directory, onerror=error_handler) pyfakefs/tests/fake_filesystem_shutil_test.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffecd8a2a0> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError ____________ FakeShutilModuleTest.test_rmtree_with_open_file_posix _____________ self = @unittest.skipIf(is_windows, "Posix specific behavior") def test_rmtree_with_open_file_posix(self): self.check_posix_only() dir_path = self.make_path("foo") self.create_file(os.path.join(dir_path, "bar")) file_path = os.path.join(dir_path, "baz") self.create_file(file_path) with open(file_path): > shutil.rmtree(dir_path) pyfakefs/tests/fake_filesystem_shutil_test.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffed04ce00> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError _____________ FakeShutilModuleTest.test_rmtree_with_trailing_slash _____________ self = def test_rmtree_with_trailing_slash(self): directory = self.make_path("xyzzy") dir_path = os.path.join(directory, "subdir") self.create_dir(dir_path) file_path = os.path.join(directory, "subfile") self.create_file(file_path) > shutil.rmtree(directory + "/") pyfakefs/tests/fake_filesystem_shutil_test.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffecf9ade0> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError ____ FakeShutilModuleTest.test_rmtree_without_permission_for_a_dir_in_posix ____ self = @unittest.skipIf(is_windows, "Posix specific behavior") def test_rmtree_without_permission_for_a_dir_in_posix(self): self.check_posix_only() dir_path = self.make_path("foo") self.create_file(os.path.join(dir_path, "bar")) file_path = os.path.join(dir_path, "baz") self.create_file(file_path) self.os.chmod(dir_path, 0o555) if not is_root(): with self.assertRaises(OSError): > shutil.rmtree(dir_path) pyfakefs/tests/fake_filesystem_shutil_test.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError __________________ FakeCopyFileTest.test_moving_dir_into_dir ___________________ self = def test_moving_dir_into_dir(self): # regression test for #515 source_dir = tempfile.mkdtemp() target_dir = tempfile.mkdtemp() filename = "foo.pdf" with open(os.path.join(source_dir, filename), "wb") as fp: fp.write(b"stub") shutil.move(source_dir, target_dir) > shutil.rmtree(target_dir) pyfakefs/tests/fake_filesystem_shutil_test.py:544: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffecf9a0c0> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError _______________________ TestPyfakefsUnittest.test_shutil _______________________ self = def test_shutil(self): """Fake shutil module is bound""" self.fs.create_dir("/test/dir1/dir2a") self.fs.create_dir("/test/dir1/dir2b") self.assertTrue(self.fs.exists("/test/dir1/dir2b")) self.assertTrue(self.fs.exists("/test/dir1/dir2a")) > shutil.rmtree("/test/dir1") pyfakefs/tests/fake_filesystem_unittest_test.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [], onexc = .onexc at 0x7fffed02b9c0> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError _______________ FakeTempfileModuleTest.test_temporary_directory ________________ self = def test_temporary_directory(self): > with tempfile.TemporaryDirectory() as tmpdir: pyfakefs/tests/fake_tempfile_test.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/tempfile.py:946: in __exit__ self.cleanup() /usr/lib/python3.12/tempfile.py:950: in cleanup self._rmtree(self.name, ignore_errors=self._ignore_cleanup_errors) /usr/lib/python3.12/tempfile.py:930: in _rmtree _shutil.rmtree(name, onexc=onexc) /usr/lib/python3.12/shutil.py:759: in rmtree _rmtree_safe_fd(stack, onexc) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack = [] onexc = .onexc at 0x7fffeddba2a0> def _rmtree_safe_fd(stack, onexc): # Each stack item has four elements: # * func: The first operation to perform: os.lstat, os.close or os.rmdir. # Walking a directory starts with an os.lstat() to detect symlinks; in # this case, func is updated before subsequent operations and passed to # onexc() if an error occurs. # * dirfd: Open file descriptor, or None if we're processing the top-level # directory given to rmtree() and the user didn't supply dir_fd. # * path: Path of file to operate upon. This is passed to onexc() if an # error occurs. # * orig_entry: os.DirEntry, or None if we're processing the top-level # directory given to rmtree(). We used the cached stat() of the entry to # save a call to os.lstat() when walking subdirectories. func, dirfd, path, orig_entry = stack.pop() name = path if orig_entry is None else orig_entry.name try: if func is os.close: os.close(dirfd) return if func is os.rmdir: os.rmdir(name, dir_fd=dirfd) return # Note: To guard against symlink races, we use the standard # lstat()/open()/fstat() trick. > assert func is os.lstat E AssertionError /usr/lib/python3.12/shutil.py:667: AssertionError =========================== short test summary info ============================ FAILED pyfakefs/tests/example_test.py::TestExample::test_rm_tree - AssertionE... FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeShutilModuleTest::test_rmtree FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeShutilModuleTest::test_rmtree_non_existing_dir FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeShutilModuleTest::test_rmtree_non_existing_dir_with_handler FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeShutilModuleTest::test_rmtree_with_open_file_posix FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeShutilModuleTest::test_rmtree_with_trailing_slash FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeShutilModuleTest::test_rmtree_without_permission_for_a_dir_in_posix FAILED pyfakefs/tests/fake_filesystem_shutil_test.py::FakeCopyFileTest::test_moving_dir_into_dir FAILED pyfakefs/tests/fake_filesystem_unittest_test.py::TestPyfakefsUnittest::test_shutil FAILED pyfakefs/tests/fake_tempfile_test.py::FakeTempfileModuleTest::test_temporary_directory ====== 10 failed, 1285 passed, 863 skipped, 2 xfailed, 1 xpassed in 8.12s ====== >>> ERROR: py3-pyfakefs: check failed >>> py3-pyfakefs: Uninstalling dependencies... (1/32) Purging .makedepends-py3-pyfakefs (20240827.081913) (2/32) Purging py3-gpep517-pyc (16-r0) (3/32) Purging py3-gpep517 (16-r0) (4/32) Purging py3-installer-pyc (0.7.0-r2) (5/32) Purging py3-installer (0.7.0-r2) (6/32) Purging py3-setuptools-pyc (70.3.0-r0) (7/32) Purging py3-setuptools (70.3.0-r0) (8/32) Purging py3-wheel-pyc (0.43.0-r0) (9/32) Purging py3-wheel (0.43.0-r0) (10/32) Purging py3-pytest-pyc (8.3.2-r0) (11/32) Purging py3-pytest (8.3.2-r0) (12/32) Purging py3-iniconfig-pyc (2.0.0-r1) (13/32) Purging py3-iniconfig (2.0.0-r1) (14/32) Purging py3-packaging-pyc (24.1-r0) (15/32) Purging py3-packaging (24.1-r0) (16/32) Purging py3-parsing-pyc (3.1.2-r1) (17/32) Purging py3-parsing (3.1.2-r1) (18/32) Purging py3-pluggy-pyc (1.5.0-r0) (19/32) Purging py3-pluggy (1.5.0-r0) (20/32) Purging py3-py-pyc (1.11.0-r3) (21/32) Purging py3-py (1.11.0-r3) (22/32) Purging python3-pyc (3.12.5-r1) (23/32) Purging python3-pycache-pyc0 (3.12.5-r1) (24/32) Purging pyc (3.12.5-r1) (25/32) Purging python3 (3.12.5-r1) (26/32) Purging gdbm (1.24-r0) (27/32) Purging libbz2 (1.0.8-r6) (28/32) Purging libffi (3.4.6-r0) (29/32) Purging libpanelw (6.5_p20240601-r0) (30/32) Purging mpdecimal (4.0.0-r0) (31/32) Purging sqlite-libs (3.46.1-r0) (32/32) Purging xz-libs (5.6.2-r0) Executing busybox-1.36.1-r31.trigger OK: 250 MiB in 101 packages