>>> py3-requests-cache: Building community/py3-requests-cache 1.0.1-r1 (using abuild 3.14.1-r3) started Fri, 15 Nov 2024 20:24:09 +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-timeout-decorator py3-ujson py3-yaml (1/92) Installing libbz2 (1.0.8-r6) (2/92) Installing libffi (3.4.6-r0) (3/92) Installing gdbm (1.24-r0) (4/92) Installing xz-libs (5.6.3-r0) (5/92) Installing mpdecimal (4.0.0-r0) (6/92) Installing libpanelw (6.5_p20241006-r3) (7/92) Installing sqlite-libs (3.47.0-r0) (8/92) Installing python3 (3.12.7-r1) (9/92) Installing python3-pycache-pyc0 (3.12.7-r1) (10/92) Installing pyc (3.12.7-r1) (11/92) Installing py3-attrs-pyc (24.2.0-r0) (12/92) Installing python3-pyc (3.12.7-r1) (13/92) Installing py3-attrs (24.2.0-r0) (14/92) Installing py3-cattrs (23.2.3-r1) (15/92) Installing py3-cattrs-pyc (23.2.3-r1) (16/92) Installing py3-platformdirs (4.3.6-r0) (17/92) Installing py3-platformdirs-pyc (4.3.6-r0) (18/92) Installing py3-certifi (2024.8.30-r0) (19/92) Installing py3-certifi-pyc (2024.8.30-r0) (20/92) Installing py3-charset-normalizer (3.4.0-r0) (21/92) Installing py3-charset-normalizer-pyc (3.4.0-r0) (22/92) Installing py3-idna (3.10-r0) (23/92) Installing py3-idna-pyc (3.10-r0) (24/92) Installing py3-urllib3 (1.26.20-r0) (25/92) Installing py3-urllib3-pyc (1.26.20-r0) (26/92) Installing py3-requests (2.32.3-r0) (27/92) Installing py3-requests-pyc (2.32.3-r0) (28/92) Installing py3-url-normalize (1.4.3-r4) (29/92) Installing py3-url-normalize-pyc (1.4.3-r4) (30/92) Installing py3-installer (0.7.0-r2) (31/92) Installing py3-installer-pyc (0.7.0-r2) (32/92) Installing py3-gpep517 (16-r0) (33/92) Installing py3-gpep517-pyc (16-r0) (34/92) Installing py3-fastjsonschema (2.20.0-r0) (35/92) Installing py3-fastjsonschema-pyc (2.20.0-r0) (36/92) Installing py3-lark-parser (1.1.9-r1) (37/92) Installing py3-lark-parser-pyc (1.1.9-r1) (38/92) Installing py3-parsing (3.1.4-r0) (39/92) Installing py3-parsing-pyc (3.1.4-r0) (40/92) Installing py3-packaging (24.2-r0) (41/92) Installing py3-packaging-pyc (24.2-r0) (42/92) Installing py3-poetry-core (1.9.1-r0) (43/92) Installing py3-poetry-core-pyc (1.9.1-r0) (44/92) Installing py3-wheel (0.43.0-r0) (45/92) Installing py3-wheel-pyc (0.43.0-r0) (46/92) Installing py3-itsdangerous (2.2.0-r0) (47/92) Installing py3-itsdangerous-pyc (2.2.0-r0) (48/92) Installing py3-mock (5.1.0-r3) (49/92) Installing py3-mock-pyc (5.1.0-r3) (50/92) Installing py3-dnspython (2.7.0-r0) (51/92) Installing py3-dnspython-pyc (2.7.0-r0) (52/92) Installing py3-mongo (4.6.0-r1) (53/92) Installing py3-mongo-pyc (4.6.0-r1) (54/92) Installing py3-msgpack (1.0.8-r1) (55/92) Installing py3-msgpack-pyc (1.0.8-r1) (56/92) Installing py3-orjson (3.10.11-r0) (57/92) Installing py3-orjson-pyc (3.10.11-r0) (58/92) Installing py3-iniconfig (2.0.0-r1) (59/92) Installing py3-iniconfig-pyc (2.0.0-r1) (60/92) Installing py3-pluggy (1.5.0-r0) (61/92) Installing py3-pluggy-pyc (1.5.0-r0) (62/92) Installing py3-py (1.11.0-r4) (63/92) Installing py3-py-pyc (1.11.0-r4) (64/92) Installing py3-pytest (8.3.3-r0) (65/92) Installing py3-pytest-pyc (8.3.3-r0) (66/92) Installing py3-execnet (2.1.1-r0) (67/92) Installing py3-execnet-pyc (2.1.1-r0) (68/92) Installing py3-pytest-xdist (3.6.1-r0) (69/92) Installing py3-pytest-xdist-pyc (3.6.1-r0) (70/92) Installing py3-six (1.16.0-r9) (71/92) Installing py3-six-pyc (1.16.0-r9) (72/92) Installing py3-requests-mock (1.11.0-r1) (73/92) Installing py3-requests-mock-pyc (1.11.0-r1) (74/92) Installing py3-toml (0.10.2-r7) (75/92) Installing py3-toml-pyc (0.10.2-r7) (76/92) Installing yaml (0.2.5-r2) (77/92) Installing py3-yaml (6.0.2-r0) (78/92) Installing py3-yaml-pyc (6.0.2-r0) (79/92) Installing py3-responses (0.25.0-r1) (80/92) Installing py3-responses-pyc (0.25.0-r1) (81/92) Installing py3-mdurl (0.1.2-r3) (82/92) Installing py3-mdurl-pyc (0.1.2-r3) (83/92) Installing py3-markdown-it-py (3.0.0-r1) (84/92) Installing py3-markdown-it-py-pyc (3.0.0-r1) (85/92) Installing py3-pygments (2.18.0-r0) (86/92) Installing py3-pygments-pyc (2.18.0-r0) (87/92) Installing py3-rich (13.9.4-r0) (88/92) Installing py3-rich-pyc (13.9.4-r0) (89/92) Installing py3-timeout-decorator (0.5.0-r4) (90/92) Installing py3-timeout-decorator-pyc (0.5.0-r4) (91/92) Installing py3-ujson (5.10.0-r0) (92/92) Installing .makedepends-py3-requests-cache (20241115.202419) Executing busybox-1.37.0-r7.trigger OK: 461 MiB in 192 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/v3.21/py3-requests-cache-1.0.1.tar.gz >>> py3-requests-cache: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/py3-requests-cache-1.0.1.tar.gz >>> py3-requests-cache: Checking sha512sums... py3-requests-cache-1.0.1.tar.gz: OK >>> py3-requests-cache: Unpacking /var/cache/distfiles/v3.21/py3-requests-cache-1.0.1.tar.gz... 2024-11-15 20:24:21,010 gpep517 INFO Building wheel via backend poetry.core.masonry.api 2024-11-15 20:24:21,166 poetry.core.masonry.builders.wheel INFO Building wheel 2024-11-15 20:24:21,193 poetry.core.masonry.builders.wheel INFO Built requests_cache-1.0.1-py3-none-any.whl 2024-11-15 20:24:21,193 gpep517 INFO The backend produced .dist/requests_cache-1.0.1-py3-none-any.whl requests_cache-1.0.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.0.1 configfile: pyproject.toml plugins: xdist-3.6.1, requests-mock-1.11.0 created: 48/48 workers 48 workers [369 items] ........................................................................ [ 19%] ........................................................................ [ 39%] ........................................................................ [ 58%] ........................................................................ [ 78%] ....................................................................F... [ 97%] ......... [100%] =================================== FAILURES =================================== ______________________________ test_mock_session _______________________________ [gw1] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/.testenv/bin/python3 mock_http_adapter = @patch.object( requests.adapters.HTTPAdapter, 'get_connection', side_effect=ValueError('Real request made!') ) def test_mock_session(mock_http_adapter): """Test that the mock_session fixture is working as expected""" with get_responses(): # An error will be raised if a real request is made > with pytest.raises(ValueError): E Failed: DID NOT RAISE tests/compat/test_responses_load_cache.py:52: Failed ----------------------------- Captured stdout call ----------------------------- [11-15 20:24:26] INFO request.allowed-passthru __init__.py:1076 ------------------------------ Captured log call ------------------------------- INFO responses:__init__.py:1076 request.allowed-passthru =============================== warnings summary =============================== tests/conftest.py:68: 49 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/conftest.py:68: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). EXPIRED_DT = datetime.utcnow() - timedelta(1) tests/unit/models/test_response.py:38: 48 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/models/test_response.py:38: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). (datetime.utcnow() + timedelta(days=1), False), tests/unit/models/test_response.py:39: 48 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/models/test_response.py:39: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). (datetime.utcnow() - timedelta(days=1), True), tests/unit/policy/test_actions.py:21: 48 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_actions.py:21: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). EXPIRED_RESPONSE = CachedResponse(expires=datetime.utcnow() - timedelta(1)) requests_cache/models/response.py:83: 48 warnings tests/unit/policy/test_actions.py: 33 warnings tests/unit/models/test_raw_response.py: 1 warning tests/unit/models/test_response.py: 19 warnings tests/compat/test_requests_mock_combine_cache.py: 1 warning tests/unit/models/test_request.py: 1 warning tests/unit/test_base_cache.py: 71 warnings tests/unit/test_serializers.py: 3 warnings tests/unit/test_session.py: 283 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/models/response.py:83: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.created_at = self.created_at or datetime.utcnow() tests/unit/test_base_cache.py:27: 48 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_base_cache.py:27: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). YESTERDAY = datetime.utcnow() - timedelta(days=1) tests/unit/policy/test_actions.py::test_update_from_cached_response__revalidate[response_headers0-expected_validation_headers0] tests/unit/policy/test_actions.py::test_update_from_cached_response__revalidate[response_headers2-expected_validation_headers2] tests/unit/policy/test_actions.py::test_update_from_cached_response__revalidate[response_headers3-expected_validation_headers3] tests/unit/policy/test_actions.py::test_update_from_cached_response__revalidate[response_headers1-expected_validation_headers1] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_actions.py:178: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). headers=response_headers, expires=datetime.utcnow() - timedelta(1) tests/unit/policy/test_actions.py: 50 warnings tests/unit/models/test_response.py: 9 warnings tests/unit/test_base_cache.py: 16 warnings tests/unit/test_session.py: 200 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/models/response.py:149: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return self.expires is not None and datetime.utcnow() >= self.expires tests/unit/policy/test_actions.py: 22 warnings tests/unit/test_base_cache.py: 4 warnings tests/unit/test_session.py: 70 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/policy/actions.py:166: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return datetime.utcnow() < cached_response.expires + offset tests/unit/models/test_raw_response.py: 1 warning tests/unit/models/test_response.py: 10 warnings tests/compat/test_requests_mock_combine_cache.py: 1 warning tests/unit/models/test_request.py: 1 warning tests/unit/test_base_cache.py: 53 warnings tests/unit/test_session.py: 303 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/models/response.py:57: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). response.created_at = datetime.utcnow() # type: ignore tests/unit/models/test_response.py::test_reset_expiration__shorten_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/models/test_response.py:97: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). expires=datetime.utcnow() + timedelta(seconds=1), tests/unit/models/test_response.py::test_reset_expiration__shorten_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/models/test_response.py:102: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). is_expired = response.reset_expiration(datetime.utcnow() - timedelta(seconds=1)) tests/unit/policy/test_actions.py::test_is_usable__max_stale[15-True] tests/unit/policy/test_actions.py::test_is_usable__max_stale[5-False] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_actions.py:338: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). cached_response = CachedResponse(expires=datetime.utcnow() - timedelta(seconds=10)) tests/unit/policy/test_actions.py::test_is_usable__stale_if_error[15-True-True] tests/unit/policy/test_actions.py::test_is_usable__stale_if_error[5-True-False] tests/unit/policy/test_actions.py::test_is_usable__stale_if_error[15-False-False] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_actions.py:373: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). cached_response = CachedResponse(expires=datetime.utcnow() - timedelta(seconds=10)) tests/unit/policy/test_actions.py: 4 warnings tests/unit/policy/test_expiration.py: 3 warnings tests/unit/test_session.py: 81 warnings tests/unit/test_base_cache.py: 22 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/policy/expiration.py:48: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return (start_time or datetime.utcnow()) + expire_after tests/unit/policy/test_actions.py: 4 warnings tests/unit/test_session.py: 23 warnings tests/unit/test_base_cache.py: 2 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/policy/expiration.py:56: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return ceil((expires - datetime.utcnow()).total_seconds()) if expires else NEVER_EXPIRE tests/unit/policy/test_actions.py::test_is_usable__min_fresh[15-False] tests/unit/policy/test_actions.py::test_is_usable__min_fresh[5-True] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_actions.py:352: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). cached_response = CachedResponse(expires=datetime.utcnow() + timedelta(seconds=10)) tests/unit/policy/test_actions.py::test_is_usable__stale_while_revalidate[15-True] tests/unit/policy/test_actions.py::test_is_usable__stale_while_revalidate[5-False] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_actions.py:393: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). cached_response = CachedResponse(expires=datetime.utcnow() - timedelta(seconds=10)) tests/unit/policy/test_expiration.py::test_get_expiration_datetime__relative[expire_after0-expected_expiration_delta0] tests/unit/policy/test_expiration.py::test_get_expiration_datetime__relative[33.3-expected_expiration_delta2] tests/unit/policy/test_expiration.py::test_get_expiration_datetime__relative[60-expected_expiration_delta1] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/policy/test_expiration.py:32: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). expected_expiration = datetime.utcnow() + expected_expiration_delta tests/unit/models/test_response.py::test_reset_expiration__extend_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/models/test_response.py:82: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). expires=datetime.utcnow() - timedelta(seconds=0.01), tests/unit/models/test_response.py::test_reset_expiration__extend_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/models/test_response.py:87: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). is_expired = response.reset_expiration(datetime.utcnow() + timedelta(seconds=0.01)) tests/unit/test_base_cache.py::test_reset_expiration__shorten_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_base_cache.py:247: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.settings.expire_after = datetime.utcnow() + timedelta(seconds=1) tests/unit/test_base_cache.py: 14 warnings tests/unit/test_session.py: 36 warnings /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/models/response.py:133: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). delta = self.expires - datetime.utcnow() tests/unit/test_base_cache.py::test_reset_expiration__shorten_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_base_cache.py:251: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.cache.reset_expiration(datetime.utcnow() - timedelta(seconds=1)) tests/unit/test_base_cache.py::test_reset_expiration__extend_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_base_cache.py:235: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.settings.expire_after = datetime.utcnow() - timedelta(seconds=1) tests/unit/test_base_cache.py::test_reset_expiration__extend_expiration /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_base_cache.py:239: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.cache.reset_expiration(datetime.utcnow() + timedelta(seconds=1)) tests/unit/test_base_cache.py::test_has_key tests/unit/test_base_cache.py::test_has_key /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/backends/base.py:289: DeprecationWarning: BaseCache.has_key() is deprecated; please use .contains() instead warn( tests/unit/test_session.py::test_response_defaults /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_session.py:88: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.settings.expire_after = datetime.utcnow() + timedelta(days=1) tests/unit/test_session.py::test_expire_immediately tests/unit/test_session.py::test_expire_immediately tests/unit/test_session.py::test_expire_immediately tests/unit/test_session.py::test_expire_immediately /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/requests_cache/policy/expiration.py:33: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return start_time or datetime.utcnow() tests/unit/test_session.py::test_304_not_modified[200-True-True-False] tests/unit/test_session.py::test_304_not_modified[304-True-True-True] /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_session.py:665: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.settings.expire_after = datetime.utcnow() - timedelta(1) tests/unit/test_session.py::test_stale_if_error__max_stale /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/tests/unit/test_session.py:428: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). mock_session.settings.expire_after = datetime.utcnow() - timedelta(seconds=10) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/compat/test_responses_load_cache.py::test_mock_session - Failed:... ================= 1 failed, 368 passed, 1664 warnings in 8.51s ================= >>> ERROR: py3-requests-cache: check failed >>> py3-requests-cache: Uninstalling dependencies... (1/92) Purging .makedepends-py3-requests-cache (20241115.202419) (2/92) Purging py3-cattrs-pyc (23.2.3-r1) (3/92) Purging py3-cattrs (23.2.3-r1) (4/92) Purging py3-platformdirs-pyc (4.3.6-r0) (5/92) Purging py3-platformdirs (4.3.6-r0) (6/92) Purging py3-url-normalize-pyc (1.4.3-r4) (7/92) Purging py3-url-normalize (1.4.3-r4) (8/92) Purging py3-gpep517-pyc (16-r0) (9/92) Purging py3-gpep517 (16-r0) (10/92) Purging py3-installer-pyc (0.7.0-r2) (11/92) Purging py3-installer (0.7.0-r2) (12/92) Purging py3-poetry-core-pyc (1.9.1-r0) (13/92) Purging py3-poetry-core (1.9.1-r0) (14/92) Purging py3-fastjsonschema-pyc (2.20.0-r0) (15/92) Purging py3-fastjsonschema (2.20.0-r0) (16/92) Purging py3-lark-parser-pyc (1.1.9-r1) (17/92) Purging py3-lark-parser (1.1.9-r1) (18/92) Purging py3-wheel-pyc (0.43.0-r0) (19/92) Purging py3-wheel (0.43.0-r0) (20/92) Purging py3-itsdangerous-pyc (2.2.0-r0) (21/92) Purging py3-itsdangerous (2.2.0-r0) (22/92) Purging py3-mock-pyc (5.1.0-r3) (23/92) Purging py3-mock (5.1.0-r3) (24/92) Purging py3-mongo-pyc (4.6.0-r1) (25/92) Purging py3-mongo (4.6.0-r1) (26/92) Purging py3-dnspython-pyc (2.7.0-r0) (27/92) Purging py3-dnspython (2.7.0-r0) (28/92) Purging py3-msgpack-pyc (1.0.8-r1) (29/92) Purging py3-msgpack (1.0.8-r1) (30/92) Purging py3-orjson-pyc (3.10.11-r0) (31/92) Purging py3-orjson (3.10.11-r0) (32/92) Purging py3-pytest-xdist-pyc (3.6.1-r0) (33/92) Purging py3-pytest-xdist (3.6.1-r0) (34/92) Purging py3-execnet-pyc (2.1.1-r0) (35/92) Purging py3-execnet (2.1.1-r0) (36/92) Purging py3-pytest-pyc (8.3.3-r0) (37/92) Purging py3-pytest (8.3.3-r0) (38/92) Purging py3-iniconfig-pyc (2.0.0-r1) (39/92) Purging py3-iniconfig (2.0.0-r1) (40/92) Purging py3-packaging-pyc (24.2-r0) (41/92) Purging py3-packaging (24.2-r0) (42/92) Purging py3-parsing-pyc (3.1.4-r0) (43/92) Purging py3-parsing (3.1.4-r0) (44/92) Purging py3-pluggy-pyc (1.5.0-r0) (45/92) Purging py3-pluggy (1.5.0-r0) (46/92) Purging py3-py-pyc (1.11.0-r4) (47/92) Purging py3-py (1.11.0-r4) (48/92) Purging py3-requests-mock-pyc (1.11.0-r1) (49/92) Purging py3-requests-mock (1.11.0-r1) (50/92) Purging py3-six-pyc (1.16.0-r9) (51/92) Purging py3-six (1.16.0-r9) (52/92) Purging py3-responses-pyc (0.25.0-r1) (53/92) Purging py3-responses (0.25.0-r1) (54/92) Purging py3-requests-pyc (2.32.3-r0) (55/92) Purging py3-requests (2.32.3-r0) (56/92) Purging py3-certifi-pyc (2024.8.30-r0) (57/92) Purging py3-certifi (2024.8.30-r0) (58/92) Purging py3-charset-normalizer-pyc (3.4.0-r0) (59/92) Purging py3-charset-normalizer (3.4.0-r0) (60/92) Purging py3-idna-pyc (3.10-r0) (61/92) Purging py3-idna (3.10-r0) (62/92) Purging py3-toml-pyc (0.10.2-r7) (63/92) Purging py3-toml (0.10.2-r7) (64/92) Purging py3-urllib3-pyc (1.26.20-r0) (65/92) Purging py3-urllib3 (1.26.20-r0) (66/92) Purging py3-rich-pyc (13.9.4-r0) (67/92) Purging py3-rich (13.9.4-r0) (68/92) Purging py3-markdown-it-py-pyc (3.0.0-r1) (69/92) Purging py3-markdown-it-py (3.0.0-r1) (70/92) Purging py3-attrs-pyc (24.2.0-r0) (71/92) Purging py3-attrs (24.2.0-r0) (72/92) Purging py3-mdurl-pyc (0.1.2-r3) (73/92) Purging py3-mdurl (0.1.2-r3) (74/92) Purging py3-pygments-pyc (2.18.0-r0) (75/92) Purging py3-pygments (2.18.0-r0) (76/92) Purging py3-timeout-decorator-pyc (0.5.0-r4) (77/92) Purging py3-timeout-decorator (0.5.0-r4) (78/92) Purging py3-ujson (5.10.0-r0) (79/92) Purging py3-yaml-pyc (6.0.2-r0) (80/92) Purging py3-yaml (6.0.2-r0) (81/92) Purging python3-pyc (3.12.7-r1) (82/92) Purging python3-pycache-pyc0 (3.12.7-r1) (83/92) Purging pyc (3.12.7-r1) (84/92) Purging python3 (3.12.7-r1) (85/92) Purging gdbm (1.24-r0) (86/92) Purging libbz2 (1.0.8-r6) (87/92) Purging libffi (3.4.6-r0) (88/92) Purging libpanelw (6.5_p20241006-r3) (89/92) Purging mpdecimal (4.0.0-r0) (90/92) Purging sqlite-libs (3.47.0-r0) (91/92) Purging xz-libs (5.6.3-r0) (92/92) Purging yaml (0.2.5-r2) Executing busybox-1.37.0-r7.trigger OK: 396 MiB in 100 packages