>>> py3-pytest-metadata: Building testing/py3-pytest-metadata 3.0.0-r1 (using abuild 3.12.0-r5) started Mon, 15 Apr 2024 23:44:01 +0000 >>> py3-pytest-metadata: Checking sanity of /home/buildozer/aports/testing/py3-pytest-metadata/APKBUILD... >>> py3-pytest-metadata: Analyzing dependencies... >>> py3-pytest-metadata: Installing for build: build-base py3-pytest py3-gpep517 py3-hatch-vcs py3-hatchling py3-wheel (1/45) Installing libbz2 (1.0.8-r6) (2/45) Installing libffi (3.4.6-r0) (3/45) Installing gdbm (1.23-r1) (4/45) Installing xz-libs (5.6.1-r3) (5/45) Installing mpdecimal (4.0.0-r0) (6/45) Installing libpanelw (6.4_p20240330-r0) (7/45) Installing readline (8.2.10-r0) (8/45) Installing sqlite-libs (3.45.2-r0) (9/45) Installing python3 (3.12.3-r0) (10/45) Installing python3-pycache-pyc0 (3.12.3-r0) (11/45) Installing pyc (3.12.3-r0) (12/45) Installing py3-iniconfig-pyc (2.0.0-r1) (13/45) Installing py3-parsing (3.1.2-r1) (14/45) Installing py3-parsing-pyc (3.1.2-r1) (15/45) Installing py3-packaging (24.0-r1) (16/45) Installing py3-packaging-pyc (24.0-r1) (17/45) Installing py3-pluggy (1.4.0-r1) (18/45) Installing py3-pluggy-pyc (1.4.0-r1) (19/45) Installing py3-py (1.11.0-r3) (20/45) Installing py3-py-pyc (1.11.0-r3) (21/45) Installing py3-pytest-pyc (8.1.1-r1) (22/45) Installing python3-pyc (3.12.3-r0) (23/45) Installing py3-iniconfig (2.0.0-r1) (24/45) Installing py3-pytest (8.1.1-r1) (25/45) Installing py3-installer (0.7.0-r2) (26/45) Installing py3-installer-pyc (0.7.0-r2) (27/45) Installing py3-gpep517 (15-r2) (28/45) Installing py3-gpep517-pyc (15-r2) (29/45) Installing py3-editables (0.5-r2) (30/45) Installing py3-editables-pyc (0.5-r2) (31/45) Installing py3-pathspec (0.12.1-r2) (32/45) Installing py3-pathspec-pyc (0.12.1-r2) (33/45) Installing py3-trove-classifiers (2024.3.3-r2) (34/45) Installing py3-trove-classifiers-pyc (2024.3.3-r2) (35/45) Installing py3-hatchling (1.22.5-r1) (36/45) Installing py3-hatchling-pyc (1.22.5-r1) (37/45) Installing py3-setuptools (69.2.0-r2) (38/45) Installing py3-setuptools-pyc (69.2.0-r2) (39/45) Installing py3-setuptools_scm (8.0.4-r2) (40/45) Installing py3-setuptools_scm-pyc (8.0.4-r2) (41/45) Installing py3-hatch-vcs (0.4.0-r2) (42/45) Installing py3-hatch-vcs-pyc (0.4.0-r2) (43/45) Installing py3-wheel (0.42.0-r1) (44/45) Installing py3-wheel-pyc (0.42.0-r1) (45/45) Installing .makedepends-py3-pytest-metadata (20240415.234403) Executing busybox-1.36.1-r25.trigger OK: 433 MiB in 152 packages >>> py3-pytest-metadata: Cleaning up srcdir >>> py3-pytest-metadata: Cleaning up pkgdir >>> py3-pytest-metadata: Cleaning up tmpdir >>> py3-pytest-metadata: Fetching https://distfiles.alpinelinux.org/distfiles/edge/pytest_metadata-3.0.0.tar.gz >>> py3-pytest-metadata: Fetching https://distfiles.alpinelinux.org/distfiles/edge/pytest_metadata-3.0.0.tar.gz >>> py3-pytest-metadata: Checking sha512sums... pytest_metadata-3.0.0.tar.gz: OK >>> py3-pytest-metadata: Unpacking /var/cache/distfiles/edge/pytest_metadata-3.0.0.tar.gz... 2024-04-15 23:44:04,591 gpep517 INFO Building wheel via backend hatchling.build 2024-04-15 23:44:04,765 gpep517 INFO The backend produced .dist/pytest_metadata-3.0.0-py3-none-any.whl pytest_metadata-3.0.0-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/buildozer/aports/testing/py3-pytest-metadata/src/pytest_metadata-3.0.0 configfile: tox.ini testpaths: tests plugins: metadata-3.0.0 collected 10 items tests/test_metadata.py ......FF.. [100%] =================================== FAILURES =================================== ___________________ test_additional_metadata_from_json_file ____________________ testdir = def test_additional_metadata_from_json_file(testdir): testdir.makepyfile( """ def test_pass(metadata): assert metadata.get('John') == 'Cena' """ ) json_temp = NamedTemporaryFile(delete=False) json_temp.write('{"John": "Cena"}'.encode(encoding="utf-8")) json_temp.flush() result = testdir.runpytest("--metadata-from-json-file", json_temp.name) > assert result.ret == 0 E assert == 0 E + where = .ret /home/buildozer/aports/testing/py3-pytest-metadata/src/pytest_metadata-3.0.0/tests/test_metadata.py:103: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0 rootdir: /tmp plugins: metadata-3.0.0 collected 0 items / 1 error ==================================== ERRORS ==================================== ______________________________ ERROR collecting . ______________________________ /usr/lib/python3.12/site-packages/pluggy/_hooks.py:501: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:119: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:473: in traced_hookexec return outcome.get_result() /usr/lib/python3.12/site-packages/pluggy/_manager.py:470: in lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult) /usr/lib/python3.12/site-packages/_pytest/python.py:212: in pytest_collect_directory if pkginit.is_file(): /usr/lib/python3.12/pathlib.py:892: in is_file return S_ISREG(self.stat().st_mode) /usr/lib/python3.12/pathlib.py:840: in stat return os.stat(self, follow_symlinks=follow_symlinks) E PermissionError: [Errno 13] Permission denied: '/tmp/ssh-XXXXBnJpCN/__init__.py' =========================== short test summary info ============================ ERROR ../../.. - PermissionError: [Errno 13] Permission denied: '/tmp/ssh-XXX... =============================== 1 error in 0.14s =============================== ----------------------------- Captured stderr call ----------------------------- ERROR: found no collectors for /tmp/pytest-of-buildozer/pytest-54/test_additional_metadata_from_json_file0 _________ test_additional_metadata_using_key_values_json_str_and_file __________ testdir = def test_additional_metadata_using_key_values_json_str_and_file(testdir): testdir.makepyfile( """ def test_pass(metadata): assert metadata.get('John') == 'Cena' assert metadata.get('Dwayne') == 'Johnson' assert metadata.get('Andre') == 'The Giant' """ ) json_temp = NamedTemporaryFile(delete=False) json_temp.write('{"Andre": "The Giant"}'.encode(encoding="utf-8")) json_temp.flush() result = testdir.runpytest( "--metadata", "John", "Cena", "--metadata-from-json", '{"Dwayne": "Johnson"}', "--metadata-from-json-file", json_temp.name, ) > assert result.ret == 0 E assert == 0 E + where = .ret /home/buildozer/aports/testing/py3-pytest-metadata/src/pytest_metadata-3.0.0/tests/test_metadata.py:127: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0 rootdir: /tmp plugins: metadata-3.0.0 collected 0 items / 1 error ==================================== ERRORS ==================================== ______________________________ ERROR collecting . ______________________________ /usr/lib/python3.12/site-packages/pluggy/_hooks.py:501: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:119: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:473: in traced_hookexec return outcome.get_result() /usr/lib/python3.12/site-packages/pluggy/_manager.py:470: in lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult) /usr/lib/python3.12/site-packages/_pytest/python.py:212: in pytest_collect_directory if pkginit.is_file(): /usr/lib/python3.12/pathlib.py:892: in is_file return S_ISREG(self.stat().st_mode) /usr/lib/python3.12/pathlib.py:840: in stat return os.stat(self, follow_symlinks=follow_symlinks) E PermissionError: [Errno 13] Permission denied: '/tmp/ssh-XXXXBnJpCN/__init__.py' =========================== short test summary info ============================ ERROR ../../.. - PermissionError: [Errno 13] Permission denied: '/tmp/ssh-XXX... =============================== 1 error in 0.12s =============================== ----------------------------- Captured stderr call ----------------------------- ERROR: found no collectors for /tmp/pytest-of-buildozer/pytest-54/test_additional_metadata_using_key_values_json_str_and_file0 =========================== short test summary info ============================ FAILED tests/test_metadata.py::test_additional_metadata_from_json_file - asse... FAILED tests/test_metadata.py::test_additional_metadata_using_key_values_json_str_and_file ========================= 2 failed, 8 passed in 0.85s ========================== >>> ERROR: py3-pytest-metadata: check failed >>> py3-pytest-metadata: Uninstalling dependencies... (1/45) Purging .makedepends-py3-pytest-metadata (20240415.234403) (2/45) Purging py3-pytest-pyc (8.1.1-r1) (3/45) Purging py3-pytest (8.1.1-r1) (4/45) Purging py3-iniconfig-pyc (2.0.0-r1) (5/45) Purging py3-iniconfig (2.0.0-r1) (6/45) Purging py3-py-pyc (1.11.0-r3) (7/45) Purging py3-py (1.11.0-r3) (8/45) Purging py3-gpep517-pyc (15-r2) (9/45) Purging py3-gpep517 (15-r2) (10/45) Purging py3-installer-pyc (0.7.0-r2) (11/45) Purging py3-installer (0.7.0-r2) (12/45) Purging py3-hatch-vcs-pyc (0.4.0-r2) (13/45) Purging py3-hatch-vcs (0.4.0-r2) (14/45) Purging py3-setuptools_scm-pyc (8.0.4-r2) (15/45) Purging py3-setuptools_scm (8.0.4-r2) (16/45) Purging py3-setuptools-pyc (69.2.0-r2) (17/45) Purging py3-setuptools (69.2.0-r2) (18/45) Purging py3-hatchling-pyc (1.22.5-r1) (19/45) Purging py3-hatchling (1.22.5-r1) (20/45) Purging py3-editables-pyc (0.5-r2) (21/45) Purging py3-editables (0.5-r2) (22/45) Purging py3-pathspec-pyc (0.12.1-r2) (23/45) Purging py3-pathspec (0.12.1-r2) (24/45) Purging py3-pluggy-pyc (1.4.0-r1) (25/45) Purging py3-pluggy (1.4.0-r1) (26/45) Purging py3-trove-classifiers-pyc (2024.3.3-r2) (27/45) Purging py3-trove-classifiers (2024.3.3-r2) (28/45) Purging py3-wheel-pyc (0.42.0-r1) (29/45) Purging py3-wheel (0.42.0-r1) (30/45) Purging py3-packaging-pyc (24.0-r1) (31/45) Purging py3-packaging (24.0-r1) (32/45) Purging py3-parsing-pyc (3.1.2-r1) (33/45) Purging py3-parsing (3.1.2-r1) (34/45) Purging python3-pyc (3.12.3-r0) (35/45) Purging python3-pycache-pyc0 (3.12.3-r0) (36/45) Purging pyc (3.12.3-r0) (37/45) Purging python3 (3.12.3-r0) (38/45) Purging gdbm (1.23-r1) (39/45) Purging libbz2 (1.0.8-r6) (40/45) Purging libffi (3.4.6-r0) (41/45) Purging libpanelw (6.4_p20240330-r0) (42/45) Purging mpdecimal (4.0.0-r0) (43/45) Purging readline (8.2.10-r0) (44/45) Purging sqlite-libs (3.45.2-r0) (45/45) Purging xz-libs (5.6.1-r3) Executing busybox-1.36.1-r25.trigger OK: 377 MiB in 107 packages