>>> py3-requests-cache: Building community/py3-requests-cache 1.2.1-r0 (using abuild 3.14.1-r3) started Mon, 18 Nov 2024 08:45:07 +0000 >>> py3-requests-cache: Validating /home/buildozer/aports/community/py3-requests-cache/APKBUILD... >>> py3-requests-cache: Analyzing dependencies... >>> py3-requests-cache: Installing for build: build-base py3-attrs py3-cattrs py3-platformdirs py3-requests py3-url-normalize py3-urllib3 py3-gpep517 py3-poetry-core py3-wheel py3-itsdangerous py3-mock py3-mongo py3-msgpack py3-orjson py3-pytest py3-pytest-xdist py3-requests-mock py3-responses py3-rich py3-time-machine py3-timeout-decorator py3-ujson py3-yaml (1/96) Installing libbz2 (1.0.8-r6) (2/96) Installing libffi (3.4.6-r0) (3/96) Installing gdbm (1.24-r0) (4/96) Installing xz-libs (5.6.3-r0) (5/96) Installing mpdecimal (4.0.0-r0) (6/96) Installing libpanelw (6.5_p20241006-r3) (7/96) Installing sqlite-libs (3.47.0-r0) (8/96) Installing python3 (3.12.7-r1) (9/96) Installing python3-pycache-pyc0 (3.12.7-r1) (10/96) Installing pyc (3.12.7-r1) (11/96) Installing py3-attrs-pyc (24.2.0-r0) (12/96) Installing python3-pyc (3.12.7-r1) (13/96) Installing py3-attrs (24.2.0-r0) (14/96) Installing py3-cattrs (23.2.3-r1) (15/96) Installing py3-cattrs-pyc (23.2.3-r1) (16/96) Installing py3-platformdirs (4.3.6-r0) (17/96) Installing py3-platformdirs-pyc (4.3.6-r0) (18/96) Installing py3-certifi (2024.8.30-r0) (19/96) Installing py3-certifi-pyc (2024.8.30-r0) (20/96) Installing py3-charset-normalizer (3.4.0-r0) (21/96) Installing py3-charset-normalizer-pyc (3.4.0-r0) (22/96) Installing py3-idna (3.10-r0) (23/96) Installing py3-idna-pyc (3.10-r0) (24/96) Installing py3-urllib3 (1.26.20-r0) (25/96) Installing py3-urllib3-pyc (1.26.20-r0) (26/96) Installing py3-requests (2.32.3-r0) (27/96) Installing py3-requests-pyc (2.32.3-r0) (28/96) Installing py3-url-normalize (1.4.3-r4) (29/96) Installing py3-url-normalize-pyc (1.4.3-r4) (30/96) Installing py3-installer (0.7.0-r2) (31/96) Installing py3-installer-pyc (0.7.0-r2) (32/96) Installing py3-gpep517 (16-r0) (33/96) Installing py3-gpep517-pyc (16-r0) (34/96) Installing py3-fastjsonschema (2.20.0-r0) (35/96) Installing py3-fastjsonschema-pyc (2.20.0-r0) (36/96) Installing py3-lark-parser (1.1.9-r1) (37/96) Installing py3-lark-parser-pyc (1.1.9-r1) (38/96) Installing py3-parsing (3.1.4-r0) (39/96) Installing py3-parsing-pyc (3.1.4-r0) (40/96) Installing py3-packaging (24.2-r0) (41/96) Installing py3-packaging-pyc (24.2-r0) (42/96) Installing py3-poetry-core (1.9.1-r0) (43/96) Installing py3-poetry-core-pyc (1.9.1-r0) (44/96) Installing py3-wheel (0.43.0-r0) (45/96) Installing py3-wheel-pyc (0.43.0-r0) (46/96) Installing py3-itsdangerous (2.2.0-r0) (47/96) Installing py3-itsdangerous-pyc (2.2.0-r0) (48/96) Installing py3-mock (5.1.0-r3) (49/96) Installing py3-mock-pyc (5.1.0-r3) (50/96) Installing py3-dnspython (2.7.0-r0) (51/96) Installing py3-dnspython-pyc (2.7.0-r0) (52/96) Installing py3-mongo (4.6.0-r1) (53/96) Installing py3-mongo-pyc (4.6.0-r1) (54/96) Installing py3-msgpack (1.0.8-r1) (55/96) Installing py3-msgpack-pyc (1.0.8-r1) (56/96) Installing py3-orjson (3.10.11-r0) (57/96) Installing py3-orjson-pyc (3.10.11-r0) (58/96) Installing py3-iniconfig (2.0.0-r1) (59/96) Installing py3-iniconfig-pyc (2.0.0-r1) (60/96) Installing py3-pluggy (1.5.0-r0) (61/96) Installing py3-pluggy-pyc (1.5.0-r0) (62/96) Installing py3-py (1.11.0-r4) (63/96) Installing py3-py-pyc (1.11.0-r4) (64/96) Installing py3-pytest (8.3.3-r0) (65/96) Installing py3-pytest-pyc (8.3.3-r0) (66/96) Installing py3-execnet (2.1.1-r0) (67/96) Installing py3-execnet-pyc (2.1.1-r0) (68/96) Installing py3-pytest-xdist (3.6.1-r0) (69/96) Installing py3-pytest-xdist-pyc (3.6.1-r0) (70/96) Installing py3-six (1.16.0-r9) (71/96) Installing py3-six-pyc (1.16.0-r9) (72/96) Installing py3-requests-mock (1.11.0-r1) (73/96) Installing py3-requests-mock-pyc (1.11.0-r1) (74/96) Installing py3-toml (0.10.2-r7) (75/96) Installing py3-toml-pyc (0.10.2-r7) (76/96) Installing yaml (0.2.5-r2) (77/96) Installing py3-yaml (6.0.2-r0) (78/96) Installing py3-yaml-pyc (6.0.2-r0) (79/96) Installing py3-responses (0.25.0-r1) (80/96) Installing py3-responses-pyc (0.25.0-r1) (81/96) Installing py3-mdurl (0.1.2-r3) (82/96) Installing py3-mdurl-pyc (0.1.2-r3) (83/96) Installing py3-markdown-it-py (3.0.0-r1) (84/96) Installing py3-markdown-it-py-pyc (3.0.0-r1) (85/96) Installing py3-pygments (2.18.0-r0) (86/96) Installing py3-pygments-pyc (2.18.0-r0) (87/96) Installing py3-rich (13.9.4-r0) (88/96) Installing py3-rich-pyc (13.9.4-r0) (89/96) Installing py3-dateutil (2.9.0-r1) (90/96) Installing py3-dateutil-pyc (2.9.0-r1) (91/96) Installing py3-time-machine (2.16.0-r0) (92/96) Installing py3-time-machine-pyc (2.16.0-r0) (93/96) Installing py3-timeout-decorator (0.5.0-r4) (94/96) Installing py3-timeout-decorator-pyc (0.5.0-r4) (95/96) Installing py3-ujson (5.10.0-r0) (96/96) Installing .makedepends-py3-requests-cache (20241118.084508) Executing busybox-1.37.0-r7.trigger OK: 433 MiB in 201 packages >>> py3-requests-cache: Cleaning up srcdir >>> py3-requests-cache: Cleaning up pkgdir >>> py3-requests-cache: Cleaning up tmpdir >>> py3-requests-cache: Fetching https://distfiles.alpinelinux.org/distfiles/edge//py3-requests-cache-1.2.1.tar.gz >>> py3-requests-cache: Fetching https://distfiles.alpinelinux.org/distfiles/edge//py3-requests-cache-1.2.1.tar.gz >>> py3-requests-cache: Checking sha512sums... py3-requests-cache-1.2.1.tar.gz: OK >>> py3-requests-cache: Unpacking /var/cache/distfiles/edge/py3-requests-cache-1.2.1.tar.gz... 2024-11-18 08:45:08,956 gpep517 INFO Building wheel via backend poetry.core.masonry.api 2024-11-18 08:45:09,090 poetry.core.masonry.builders.wheel INFO Building wheel 2024-11-18 08:45:09,109 poetry.core.masonry.builders.wheel INFO Built requests_cache-1.2.1-py3-none-any.whl 2024-11-18 08:45:09,109 gpep517 INFO The backend produced .dist/requests_cache-1.2.1-py3-none-any.whl requests_cache-1.2.1-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.2.1 configfile: pyproject.toml plugins: time-machine-2.16.0, requests-mock-1.11.0, xdist-3.6.1 created: 8/8 workers 8 workers [384 items] ........................................................................ [ 18%] ........................................................................ [ 37%] ........................................................................ [ 56%] ........................................................................ [ 75%] ........................................................................ [ 93%] ............F...F....... [100%] =================================== FAILURES =================================== _____________ test_request_only_if_cached__stale_if_error__expired _____________ [gw6] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.2.1/.testenv/bin/python3 mock_session = @skip_pypy def test_request_only_if_cached__stale_if_error__expired(mock_session): """only_if_cached *will* return an expired response if stale_if_error is also set""" with time_travel(START_DT): mock_session.get(MOCKED_URL, expire_after=1) with time_travel(START_DT + timedelta(seconds=1.1)): mock_session.settings.stale_if_error = True response = mock_session.get(MOCKED_URL, only_if_cached=True) assert response.status_code == 200 assert response.from_cache is True > assert response.is_expired is True E AssertionError: assert False is True E + where False = CachedResponse(_content=b'mock response', created_at='2024-11-18 08:45:10.644098+00:00', elapsed=datetime.timedelta(mi..., method='GET', url='http+mock://requests-cache.com/text'), status_code=200, url='http+mock://requests-cache.com/text').is_expired tests/unit/test_session.py:941: AssertionError _______________________ test_stale_if_error__error_code ________________________ [gw4] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.2.1/.testenv/bin/python3 mock_session = @skip_pypy def test_stale_if_error__error_code(mock_session): """With stale_if_error, expect to get old cache data if a response has an error status code, that is not in allowable_codes. """ mock_session.settings.stale_if_error = True mock_session.settings.expire_after = 1 mock_session.settings.allowable_codes = (200,) with time_travel(START_DT): assert mock_session.get(MOCKED_URL_200_404).status_code == 200 with time_travel(START_DT + timedelta(seconds=1.1)): response = mock_session.get(MOCKED_URL_200_404) assert response.status_code == 200 assert response.from_cache is True > assert response.is_expired is True E AssertionError: assert False is True E + where False = CachedResponse(_content=b'', created_at='2024-11-18 08:45:10.557992+00:00', elapsed=datetime.timedelta(microseconds=91...od='GET', url='http+mock://requests-cache.com/200-404'), status_code=200, url='http+mock://requests-cache.com/200-404').is_expired tests/unit/test_session.py:476: AssertionError ----------------------------- Captured stdout call ----------------------------- [11-18 08:45:11] WARNING Request for URL session.py:308 http+mock://requests-cache.com/200-404 failed; using cached response ╭─ Traceback (most recent call last) ─╮ │ /home/buildozer/aports/community/py │ │ 3-requests-cache/src/requests-cache │ │ -1.2.1/requests_cache/session.py:29 │ │ 1 in _resend │ │ │ │ 288 │ │ │ │ self.settings │ │ 289 │ │ │ │ and response. │ │ 290 │ │ │ ): │ │ ❱ 291 │ │ │ │ response.rais │ │ 292 │ │ │ return response │ │ 293 │ │ except Exception: │ │ 294 │ │ │ return self._hand │ │ │ │ /usr/lib/python3.12/site-packages/r │ │ equests/models.py:1024 in │ │ raise_for_status │ │ │ │ 1021 │ │ │ ) │ │ 1022 │ │ │ │ 1023 │ │ if http_error_msg: │ │ ❱ 1024 │ │ │ raise HTTPError( │ │ 1025 │ │ │ 1026 │ def close(self): │ │ 1027 │ │ """Releases the conn │ ╰─────────────────────────────────────╯ HTTPError: 404 Client Error: None for url: http+mock://requests-cache.com/200-404 ------------------------------ Captured log call ------------------------------- WARNING requests_cache.session:session.py:308 Request for URL http+mock://requests-cache.com/200-404 failed; using cached response Traceback (most recent call last): File "/home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.2.1/requests_cache/session.py", line 291, in _resend response.raise_for_status() File "/usr/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: None for url: http+mock://requests-cache.com/200-404 =========================== short test summary info ============================ FAILED tests/unit/test_session.py::test_request_only_if_cached__stale_if_error__expired FAILED tests/unit/test_session.py::test_stale_if_error__error_code - Assertio... ======================== 2 failed, 382 passed in 3.42s ========================= /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-4db6678c-a8bb-4c9b-b621-877c8d7ad7bc/popen-gw7/test_discovery_via_path_in_non0 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-4db6678c-a8bb-4c9b-b621-877c8d7ad7bc/popen-gw7/test_discovery_via_path_in_non0' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-4db6678c-a8bb-4c9b-b621-877c8d7ad7bc/popen-gw7 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-4db6678c-a8bb-4c9b-b621-877c8d7ad7bc/popen-gw7' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-4db6678c-a8bb-4c9b-b621-877c8d7ad7bc : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-4db6678c-a8bb-4c9b-b621-877c8d7ad7bc' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-4b952264-b968-458e-8a28-c7966dd4ae6c/popen-gw6/test_discovery_via_path_in_non0 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-4b952264-b968-458e-8a28-c7966dd4ae6c/popen-gw6/test_discovery_via_path_in_non0' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-4b952264-b968-458e-8a28-c7966dd4ae6c/popen-gw6 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-4b952264-b968-458e-8a28-c7966dd4ae6c/popen-gw6' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-4b952264-b968-458e-8a28-c7966dd4ae6c : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-4b952264-b968-458e-8a28-c7966dd4ae6c' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-6c48af57-d1b6-4ddc-9914-d372dd5d970b/test_validate_zimfile_creatabl3 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-6c48af57-d1b6-4ddc-9914-d372dd5d970b/test_validate_zimfile_creatabl3' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-6c48af57-d1b6-4ddc-9914-d372dd5d970b : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-6c48af57-d1b6-4ddc-9914-d372dd5d970b' warnings.warn( >>> ERROR: py3-requests-cache: check failed >>> py3-requests-cache: Uninstalling dependencies... (1/96) Purging .makedepends-py3-requests-cache (20241118.084508) (2/96) Purging py3-cattrs-pyc (23.2.3-r1) (3/96) Purging py3-cattrs (23.2.3-r1) (4/96) Purging py3-platformdirs-pyc (4.3.6-r0) (5/96) Purging py3-platformdirs (4.3.6-r0) (6/96) Purging py3-url-normalize-pyc (1.4.3-r4) (7/96) Purging py3-url-normalize (1.4.3-r4) (8/96) Purging py3-gpep517-pyc (16-r0) (9/96) Purging py3-gpep517 (16-r0) (10/96) Purging py3-installer-pyc (0.7.0-r2) (11/96) Purging py3-installer (0.7.0-r2) (12/96) Purging py3-poetry-core-pyc (1.9.1-r0) (13/96) Purging py3-poetry-core (1.9.1-r0) (14/96) Purging py3-fastjsonschema-pyc (2.20.0-r0) (15/96) Purging py3-fastjsonschema (2.20.0-r0) (16/96) Purging py3-lark-parser-pyc (1.1.9-r1) (17/96) Purging py3-lark-parser (1.1.9-r1) (18/96) Purging py3-wheel-pyc (0.43.0-r0) (19/96) Purging py3-wheel (0.43.0-r0) (20/96) Purging py3-itsdangerous-pyc (2.2.0-r0) (21/96) Purging py3-itsdangerous (2.2.0-r0) (22/96) Purging py3-mock-pyc (5.1.0-r3) (23/96) Purging py3-mock (5.1.0-r3) (24/96) Purging py3-mongo-pyc (4.6.0-r1) (25/96) Purging py3-mongo (4.6.0-r1) (26/96) Purging py3-dnspython-pyc (2.7.0-r0) (27/96) Purging py3-dnspython (2.7.0-r0) (28/96) Purging py3-msgpack-pyc (1.0.8-r1) (29/96) Purging py3-msgpack (1.0.8-r1) (30/96) Purging py3-orjson-pyc (3.10.11-r0) (31/96) Purging py3-orjson (3.10.11-r0) (32/96) Purging py3-pytest-xdist-pyc (3.6.1-r0) (33/96) Purging py3-pytest-xdist (3.6.1-r0) (34/96) Purging py3-execnet-pyc (2.1.1-r0) (35/96) Purging py3-execnet (2.1.1-r0) (36/96) Purging py3-pytest-pyc (8.3.3-r0) (37/96) Purging py3-pytest (8.3.3-r0) (38/96) Purging py3-iniconfig-pyc (2.0.0-r1) (39/96) Purging py3-iniconfig (2.0.0-r1) (40/96) Purging py3-packaging-pyc (24.2-r0) (41/96) Purging py3-packaging (24.2-r0) (42/96) Purging py3-parsing-pyc (3.1.4-r0) (43/96) Purging py3-parsing (3.1.4-r0) (44/96) Purging py3-pluggy-pyc (1.5.0-r0) (45/96) Purging py3-pluggy (1.5.0-r0) (46/96) Purging py3-py-pyc (1.11.0-r4) (47/96) Purging py3-py (1.11.0-r4) (48/96) Purging py3-requests-mock-pyc (1.11.0-r1) (49/96) Purging py3-requests-mock (1.11.0-r1) (50/96) Purging py3-responses-pyc (0.25.0-r1) (51/96) Purging py3-responses (0.25.0-r1) (52/96) Purging py3-requests-pyc (2.32.3-r0) (53/96) Purging py3-requests (2.32.3-r0) (54/96) Purging py3-certifi-pyc (2024.8.30-r0) (55/96) Purging py3-certifi (2024.8.30-r0) (56/96) Purging py3-charset-normalizer-pyc (3.4.0-r0) (57/96) Purging py3-charset-normalizer (3.4.0-r0) (58/96) Purging py3-idna-pyc (3.10-r0) (59/96) Purging py3-idna (3.10-r0) (60/96) Purging py3-toml-pyc (0.10.2-r7) (61/96) Purging py3-toml (0.10.2-r7) (62/96) Purging py3-urllib3-pyc (1.26.20-r0) (63/96) Purging py3-urllib3 (1.26.20-r0) (64/96) Purging py3-rich-pyc (13.9.4-r0) (65/96) Purging py3-rich (13.9.4-r0) (66/96) Purging py3-markdown-it-py-pyc (3.0.0-r1) (67/96) Purging py3-markdown-it-py (3.0.0-r1) (68/96) Purging py3-attrs-pyc (24.2.0-r0) (69/96) Purging py3-attrs (24.2.0-r0) (70/96) Purging py3-mdurl-pyc (0.1.2-r3) (71/96) Purging py3-mdurl (0.1.2-r3) (72/96) Purging py3-pygments-pyc (2.18.0-r0) (73/96) Purging py3-pygments (2.18.0-r0) (74/96) Purging py3-time-machine-pyc (2.16.0-r0) (75/96) Purging py3-time-machine (2.16.0-r0) (76/96) Purging py3-dateutil-pyc (2.9.0-r1) (77/96) Purging py3-dateutil (2.9.0-r1) (78/96) Purging py3-six-pyc (1.16.0-r9) (79/96) Purging py3-six (1.16.0-r9) (80/96) Purging py3-timeout-decorator-pyc (0.5.0-r4) (81/96) Purging py3-timeout-decorator (0.5.0-r4) (82/96) Purging py3-ujson (5.10.0-r0) (83/96) Purging py3-yaml-pyc (6.0.2-r0) (84/96) Purging py3-yaml (6.0.2-r0) (85/96) Purging python3-pyc (3.12.7-r1) (86/96) Purging python3-pycache-pyc0 (3.12.7-r1) (87/96) Purging pyc (3.12.7-r1) (88/96) Purging python3 (3.12.7-r1) (89/96) Purging gdbm (1.24-r0) (90/96) Purging libbz2 (1.0.8-r6) (91/96) Purging libffi (3.4.6-r0) (92/96) Purging libpanelw (6.5_p20241006-r3) (93/96) Purging mpdecimal (4.0.0-r0) (94/96) Purging sqlite-libs (3.47.0-r0) (95/96) Purging xz-libs (5.6.3-r0) (96/96) Purging yaml (0.2.5-r2) Executing busybox-1.37.0-r7.trigger OK: 359 MiB in 105 packages