{"language": "Python", "id": 20, "repo_owner": "sanic-org", "repo_name": "sanic", "head_branch": "py312", "workflow_name": "Tests", "workflow_filename": "tests.yml", "workflow_path": ".github/workflows/tests.yml", "contributor": "iAndriy", "sha_fail": "2e41e783672597e2e0c7b2842b5934d879374028", "sha_success": "c3fa036f4b8a8b7bccc0c967fb94de809ef0e320", "workflow": "name: Tests\n\non:\n push:\n branches:\n - main\n - current-release\n - \"*LTS\"\n tags:\n - \"!*\"\n pull_request:\n branches:\n - main\n - current-release\n - \"*LTS\"\n types: [opened, synchronize, reopened, ready_for_review]\n\njobs:\n run_tests:\n name: \"${{ matrix.config.platform == 'windows-latest' && 'Windows' || 'Linux' }} / Python ${{ matrix.config.python-version }} / tox -e ${{ matrix.config.tox-env }}\"\n if: github.event.pull_request.draft == false\n runs-on: ${{ matrix.config.platform || 'ubuntu-latest' }}\n strategy:\n fail-fast: true\n matrix:\n config:\n - { python-version: \"3.8\", tox-env: security }\n - { python-version: \"3.9\", tox-env: security }\n - { python-version: \"3.10\", tox-env: security }\n - { python-version: \"3.11\", tox-env: security }\n - { python-version: \"3.10\", tox-env: lint }\n # - { python-version: \"3.10\", tox-env: docs }\n - { python-version: \"3.8\", tox-env: type-checking }\n - { python-version: \"3.9\", tox-env: type-checking }\n - { python-version: \"3.10\", tox-env: type-checking }\n - { python-version: \"3.11\", tox-env: type-checking }\n - { python-version: \"3.8\", tox-env: py38, max-attempts: 3 }\n - { python-version: \"3.8\", tox-env: py38-no-ext, max-attempts: 3 }\n - { python-version: \"3.9\", tox-env: py39, max-attempts: 3 }\n - { python-version: \"3.9\", tox-env: py39-no-ext, max-attempts: 3 }\n - { python-version: \"3.10\", tox-env: py310, max-attempts: 3 }\n - { python-version: \"3.10\", tox-env: py310-no-ext, max-attempts: 3 }\n - { python-version: \"3.11\", tox-env: py311, max-attempts: 3 }\n - { python-version: \"3.12\", tox-env: py312, max-attempts: 3 }\n - { python-version: \"3.11\", tox-env: py311-no-ext, max-attempts: 3 }\n - { python-version: \"3.8\", tox-env: py38-no-ext, platform: windows-latest, ignore-errors: true }\n - { python-version: \"3.9\", tox-env: py39-no-ext, platform: windows-latest, ignore-errors: true }\n - { python-version: \"3.10\", tox-env: py310-no-ext, platform: windows-latest, ignore-errors: true }\n - { python-version: \"3.11\", tox-env: py310-no-ext, platform: windows-latest, ignore-errors: true }\n steps:\n - name: Run tests\n uses: sanic-org/simple-tox-action@v1\n with:\n python-version: ${{ matrix.config.python-version }}\n tox-env: ${{ matrix.config.tox-env }}\n max-attempts: ${{ matrix.config.max-attempts || 1 }}\n ignore-errors: ${{ matrix.config.ignore-errors || false }}\n", "logs": [{"step_name": "Linux Python 3.12 tox -e py312/2_Run tests.txt", "log": "##[group]Run sanic-org/simple-tox-action@v1\nwith:\n python-version: 3.12\n tox-env: py312\n max-attempts: 3\n ignore-errors: false\n timeout-minutes: 10\n warning-on-retry: false\n##[endgroup]\n##[group]Run actions/checkout@v3\nwith:\n repository: sanic-org/sanic\n token: ***\n ssh-strict: true\n persist-credentials: true\n clean: true\n sparse-checkout-cone-mode: true\n fetch-depth: 1\n fetch-tags: false\n lfs: false\n submodules: false\n set-safe-directory: true\n##[endgroup]\nSyncing repository: sanic-org/sanic\n##[group]Getting Git version info\nWorking directory is '/home/runner/work/sanic/sanic'\n[command]/usr/bin/git version\ngit version 2.43.0\n##[endgroup]\nTemporarily overriding HOME='/home/runner/work/_temp/4ed65391-2ae4-459e-9e2a-279a317c6c7d' before making global git config changes\nAdding repository directory to the temporary git global config as a safe directory\n[command]/usr/bin/git config --global --add safe.directory /home/runner/work/sanic/sanic\nDeleting the contents of '/home/runner/work/sanic/sanic'\n##[group]Initializing the repository\n[command]/usr/bin/git init /home/runner/work/sanic/sanic\nhint: Using 'master' as the name for the initial branch. This default branch name\nhint: is subject to change. To configure the initial branch name to use in all\nhint: of your new repositories, which will suppress this warning, call:\nhint: \nhint: \tgit config --global init.defaultBranch \nhint: \nhint: Names commonly chosen instead of 'master' are 'main', 'trunk' and\nhint: 'development'. The just-created branch can be renamed via this command:\nhint: \nhint: \tgit branch -m \nInitialized empty Git repository in /home/runner/work/sanic/sanic/.git/\n[command]/usr/bin/git remote add origin https://github.com/sanic-org/sanic\n##[endgroup]\n##[group]Disabling automatic garbage collection\n[command]/usr/bin/git config --local gc.auto 0\n##[endgroup]\n##[group]Setting up auth\n[command]/usr/bin/git config --local --name-only --get-regexp core\\.sshCommand\n[command]/usr/bin/git submodule foreach --recursive sh -c \"git config --local --name-only --get-regexp 'core\\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"\n[command]/usr/bin/git config --local --name-only --get-regexp http\\.https\\:\\/\\/github\\.com\\/\\.extraheader\n[command]/usr/bin/git submodule foreach --recursive sh -c \"git config --local --name-only --get-regexp 'http\\.https\\:\\/\\/github\\.com\\/\\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"\n[command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***\n##[endgroup]\n##[group]Fetching the repository\n[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c70813b35243c936909c498015f2d60e376efb7f:refs/remotes/pull/2870/merge\nremote: Enumerating objects: 713, done. \nremote: Counting objects: 0% (1/713) \nremote: Counting objects: 1% (8/713) \nremote: Counting objects: 2% (15/713) \nremote: Counting objects: 3% (22/713) \nremote: Counting objects: 4% (29/713) \nremote: Counting objects: 5% (36/713) \nremote: Counting objects: 6% (43/713) \nremote: Counting objects: 7% (50/713) \nremote: Counting objects: 8% (58/713) \nremote: Counting objects: 9% (65/713) \nremote: Counting objects: 10% (72/713) \nremote: Counting objects: 11% (79/713) \nremote: Counting objects: 12% (86/713) \nremote: Counting objects: 13% (93/713) \nremote: Counting objects: 14% (100/713) \nremote: Counting objects: 15% (107/713) \nremote: Counting objects: 16% (115/713) \nremote: Counting objects: 17% (122/713) \nremote: Counting objects: 18% (129/713) \nremote: Counting objects: 19% (136/713) \nremote: Counting objects: 20% (143/713) \nremote: Counting objects: 21% (150/713) \nremote: Counting objects: 22% (157/713) \nremote: Counting objects: 23% (164/713) \nremote: Counting objects: 24% (172/713) \nremote: Counting objects: 25% (179/713) \nremote: Counting objects: 26% (186/713) \nremote: Counting objects: 27% (193/713) \nremote: Counting objects: 28% (200/713) \nremote: Counting objects: 29% (207/713) \nremote: Counting objects: 30% (214/713) \nremote: Counting objects: 31% (222/713) \nremote: Counting objects: 32% (229/713) \nremote: Counting objects: 33% (236/713) \nremote: Counting objects: 34% (243/713) \nremote: Counting objects: 35% (250/713) \nremote: Counting objects: 36% (257/713) \nremote: Counting objects: 37% (264/713) \nremote: Counting objects: 38% (271/713) \nremote: Counting objects: 39% (279/713) \nremote: Counting objects: 40% (286/713) \nremote: Counting objects: 41% (293/713) \nremote: Counting objects: 42% (300/713) \nremote: Counting objects: 43% (307/713) \nremote: Counting objects: 44% (314/713) \nremote: Counting objects: 45% (321/713) \nremote: Counting objects: 46% (328/713) \nremote: Counting objects: 47% (336/713) \nremote: Counting objects: 48% (343/713) \nremote: Counting objects: 49% (350/713) \nremote: Counting objects: 50% (357/713) \nremote: Counting objects: 51% (364/713) \nremote: Counting objects: 52% (371/713) \nremote: Counting objects: 53% (378/713) \nremote: Counting objects: 54% (386/713) \nremote: Counting objects: 55% (393/713) \nremote: Counting objects: 56% (400/713) \nremote: Counting objects: 57% (407/713) \nremote: Counting objects: 58% (414/713) \nremote: Counting objects: 59% (421/713) \nremote: Counting objects: 60% (428/713) \nremote: Counting objects: 61% (435/713) \nremote: Counting objects: 62% (443/713) \nremote: Counting objects: 63% (450/713) \nremote: Counting objects: 64% (457/713) \nremote: Counting objects: 65% (464/713) \nremote: Counting objects: 66% (471/713) \nremote: Counting objects: 67% (478/713) \nremote: Counting objects: 68% (485/713) \nremote: Counting objects: 69% (492/713) \nremote: Counting objects: 70% (500/713) \nremote: Counting objects: 71% (507/713) \nremote: Counting objects: 72% (514/713) \nremote: Counting objects: 73% (521/713) \nremote: Counting objects: 74% (528/713) \nremote: Counting objects: 75% (535/713) \nremote: Counting objects: 76% (542/713) \nremote: Counting objects: 77% (550/713) \nremote: Counting objects: 78% (557/713) \nremote: Counting objects: 79% (564/713) \nremote: Counting objects: 80% (571/713) \nremote: Counting objects: 81% (578/713) \nremote: Counting objects: 82% (585/713) \nremote: Counting objects: 83% (592/713) \nremote: Counting objects: 84% (599/713) \nremote: Counting objects: 85% (607/713) \nremote: Counting objects: 86% (614/713) \nremote: Counting objects: 87% (621/713) \nremote: Counting objects: 88% (628/713) \nremote: Counting objects: 89% (635/713) \nremote: Counting objects: 90% (642/713) \nremote: Counting objects: 91% (649/713) \nremote: Counting objects: 92% (656/713) \nremote: Counting objects: 93% (664/713) \nremote: Counting objects: 94% (671/713) \nremote: Counting objects: 95% (678/713) \nremote: Counting objects: 96% (685/713) \nremote: Counting objects: 97% (692/713) \nremote: Counting objects: 98% (699/713) \nremote: Counting objects: 99% (706/713) \nremote: Counting objects: 100% (713/713) \nremote: Counting objects: 100% (713/713), done. \nremote: Compressing objects: 0% (1/658) \nremote: Compressing objects: 1% (7/658) \nremote: Compressing objects: 2% (14/658) \nremote: Compressing objects: 3% (20/658) \nremote: Compressing objects: 4% (27/658) \nremote: Compressing objects: 5% (33/658) \nremote: Compressing objects: 6% (40/658) \nremote: Compressing objects: 7% (47/658) \nremote: Compressing objects: 8% (53/658) \nremote: Compressing objects: 9% (60/658) \nremote: Compressing objects: 10% (66/658) \nremote: Compressing objects: 11% (73/658) \nremote: Compressing objects: 12% (79/658) \nremote: Compressing objects: 13% (86/658) \nremote: Compressing objects: 14% (93/658) \nremote: Compressing objects: 15% (99/658) \nremote: Compressing objects: 16% (106/658) \nremote: Compressing objects: 17% (112/658) \nremote: Compressing objects: 18% (119/658) \nremote: Compressing objects: 19% (126/658) \nremote: Compressing objects: 20% (132/658) \nremote: Compressing objects: 21% (139/658) \nremote: Compressing objects: 22% (145/658) \nremote: Compressing objects: 23% (152/658) \nremote: Compressing objects: 24% (158/658) \nremote: Compressing objects: 25% (165/658) \nremote: Compressing objects: 26% (172/658) \nremote: Compressing objects: 27% (178/658) \nremote: Compressing objects: 28% (185/658) \nremote: Compressing objects: 29% (191/658) \nremote: Compressing objects: 30% (198/658) \nremote: Compressing objects: 31% (204/658) \nremote: Compressing objects: 32% (211/658) \nremote: Compressing objects: 33% (218/658) \nremote: Compressing objects: 34% (224/658) \nremote: Compressing objects: 35% (231/658) \nremote: Compressing objects: 36% (237/658) \nremote: Compressing objects: 37% (244/658) \nremote: Compressing objects: 38% (251/658) \nremote: Compressing objects: 39% (257/658) \nremote: Compressing objects: 40% (264/658) \nremote: Compressing objects: 41% (270/658) \nremote: Compressing objects: 42% (277/658) \nremote: Compressing objects: 43% (283/658) \nremote: Compressing objects: 44% (290/658) \nremote: Compressing objects: 45% (297/658) \nremote: Compressing objects: 46% (303/658) \nremote: Compressing objects: 47% (310/658) \nremote: Compressing objects: 48% (316/658) \nremote: Compressing objects: 49% (323/658) \nremote: Compressing objects: 50% (329/658) \nremote: Compressing objects: 51% (336/658) \nremote: Compressing objects: 52% (343/658) \nremote: Compressing objects: 53% (349/658) \nremote: Compressing objects: 54% (356/658) \nremote: Compressing objects: 55% (362/658) \nremote: Compressing objects: 56% (369/658) \nremote: Compressing objects: 57% (376/658) \nremote: Compressing objects: 58% (382/658) \nremote: Compressing objects: 59% (389/658) \nremote: Compressing objects: 60% (395/658) \nremote: Compressing objects: 61% (402/658) \nremote: Compressing objects: 62% (408/658) \nremote: Compressing objects: 63% (415/658) \nremote: Compressing objects: 64% (422/658) \nremote: Compressing objects: 65% (428/658) \nremote: Compressing objects: 66% (435/658) \nremote: Compressing objects: 67% (441/658) \nremote: Compressing objects: 68% (448/658) \nremote: Compressing objects: 69% (455/658) \nremote: Compressing objects: 70% (461/658) \nremote: Compressing objects: 71% (468/658) \nremote: Compressing objects: 72% (474/658) \nremote: Compressing objects: 73% (481/658) \nremote: Compressing objects: 74% (487/658) \nremote: Compressing objects: 75% (494/658) \nremote: Compressing objects: 76% (501/658) \nremote: Compressing objects: 77% (507/658) \nremote: Compressing objects: 78% (514/658) \nremote: Compressing objects: 79% (520/658) \nremote: Compressing objects: 80% (527/658) \nremote: Compressing objects: 81% (533/658) \nremote: Compressing objects: 82% (540/658) \nremote: Compressing objects: 83% (547/658) \nremote: Compressing objects: 84% (553/658) \nremote: Compressing objects: 85% (560/658) \nremote: Compressing objects: 86% (566/658) \nremote: Compressing objects: 87% (573/658) \nremote: Compressing objects: 88% (580/658) \nremote: Compressing objects: 89% (586/658) \nremote: Compressing objects: 90% (593/658) \nremote: Compressing objects: 91% (599/658) \nremote: Compressing objects: 92% (606/658) \nremote: Compressing objects: 93% (612/658) \nremote: Compressing objects: 94% (619/658) \nremote: Compressing objects: 95% (626/658) \nremote: Compressing objects: 96% (632/658) \nremote: Compressing objects: 97% (639/658) \nremote: Compressing objects: 98% (645/658) \nremote: Compressing objects: 99% (652/658) \nremote: Compressing objects: 100% (658/658) \nremote: Compressing objects: 100% (658/658), done. \nReceiving objects: 0% (1/713)\nReceiving objects: 1% (8/713)\nReceiving objects: 2% (15/713)\nReceiving objects: 3% (22/713)\nReceiving objects: 4% (29/713)\nReceiving objects: 5% (36/713)\nReceiving objects: 6% (43/713)\nReceiving objects: 7% (50/713)\nReceiving objects: 8% (58/713)\nReceiving objects: 9% (65/713)\nReceiving objects: 10% (72/713)\nReceiving objects: 11% (79/713)\nReceiving objects: 12% (86/713)\nReceiving objects: 13% (93/713)\nReceiving objects: 14% (100/713)\nReceiving objects: 15% (107/713)\nReceiving objects: 16% (115/713)\nReceiving objects: 17% (122/713)\nReceiving objects: 18% (129/713)\nReceiving objects: 19% (136/713)\nReceiving objects: 20% (143/713)\nReceiving objects: 21% (150/713)\nReceiving objects: 22% (157/713)\nReceiving objects: 23% (164/713)\nReceiving objects: 24% (172/713)\nReceiving objects: 25% (179/713)\nReceiving objects: 26% (186/713)\nReceiving objects: 27% (193/713)\nReceiving objects: 28% (200/713)\nReceiving objects: 29% (207/713)\nReceiving objects: 30% (214/713)\nReceiving objects: 31% (222/713)\nReceiving objects: 32% (229/713)\nReceiving objects: 33% (236/713)\nReceiving objects: 34% (243/713)\nReceiving objects: 35% (250/713)\nReceiving objects: 36% (257/713)\nReceiving objects: 37% (264/713)\nReceiving objects: 38% (271/713)\nReceiving objects: 39% (279/713)\nReceiving objects: 40% (286/713)\nReceiving objects: 41% (293/713)\nReceiving objects: 42% (300/713)\nReceiving objects: 43% (307/713)\nReceiving objects: 44% (314/713)\nReceiving objects: 45% (321/713)\nReceiving objects: 46% (328/713)\nReceiving objects: 47% (336/713)\nReceiving objects: 48% (343/713)\nReceiving objects: 49% (350/713)\nReceiving objects: 50% (357/713)\nReceiving objects: 51% (364/713)\nReceiving objects: 52% (371/713)\nReceiving objects: 53% (378/713)\nReceiving objects: 54% (386/713)\nReceiving objects: 55% (393/713)\nReceiving objects: 56% (400/713)\nReceiving objects: 57% (407/713)\nReceiving objects: 58% (414/713)\nReceiving objects: 59% (421/713)\nReceiving objects: 60% (428/713)\nReceiving objects: 61% (435/713)\nReceiving objects: 62% (443/713)\nReceiving objects: 63% (450/713)\nReceiving objects: 64% (457/713)\nReceiving objects: 65% (464/713)\nReceiving objects: 66% (471/713)\nReceiving objects: 67% (478/713)\nReceiving objects: 68% (485/713)\nReceiving objects: 69% (492/713)\nReceiving objects: 70% (500/713)\nReceiving objects: 71% (507/713)\nReceiving objects: 72% (514/713)\nReceiving objects: 73% (521/713)\nReceiving objects: 74% (528/713)\nReceiving objects: 75% (535/713)\nReceiving objects: 76% (542/713)\nReceiving objects: 77% (550/713)\nReceiving objects: 78% (557/713)\nReceiving objects: 79% (564/713)\nReceiving objects: 80% (571/713)\nReceiving objects: 81% (578/713)\nReceiving objects: 82% (585/713)\nReceiving objects: 83% (592/713)\nReceiving objects: 84% (599/713)\nReceiving objects: 85% (607/713)\nReceiving objects: 86% (614/713)\nReceiving objects: 87% (621/713)\nReceiving objects: 88% (628/713)\nReceiving objects: 89% (635/713)\nReceiving objects: 90% (642/713)\nReceiving objects: 91% (649/713)\nremote: Total 713 (delta 28), reused 441 (delta 23), pack-reused 0 \nReceiving objects: 92% (656/713)\nReceiving objects: 93% (664/713)\nReceiving objects: 94% (671/713)\nReceiving objects: 95% (678/713)\nReceiving objects: 96% (685/713)\nReceiving objects: 97% (692/713)\nReceiving objects: 98% (699/713)\nReceiving objects: 99% (706/713)\nReceiving objects: 100% (713/713)\nReceiving objects: 100% (713/713), 3.74 MiB | 40.79 MiB/s, done.\nResolving deltas: 0% (0/28)\nResolving deltas: 3% (1/28)\nResolving deltas: 7% (2/28)\nResolving deltas: 10% (3/28)\nResolving deltas: 14% (4/28)\nResolving deltas: 17% (5/28)\nResolving deltas: 21% (6/28)\nResolving deltas: 25% (7/28)\nResolving deltas: 28% (8/28)\nResolving deltas: 32% (9/28)\nResolving deltas: 35% (10/28)\nResolving deltas: 39% (11/28)\nResolving deltas: 42% (12/28)\nResolving deltas: 46% (13/28)\nResolving deltas: 50% (14/28)\nResolving deltas: 53% (15/28)\nResolving deltas: 57% (16/28)\nResolving deltas: 60% (17/28)\nResolving deltas: 64% (18/28)\nResolving deltas: 67% (19/28)\nResolving deltas: 71% (20/28)\nResolving deltas: 75% (21/28)\nResolving deltas: 78% (22/28)\nResolving deltas: 82% (23/28)\nResolving deltas: 85% (24/28)\nResolving deltas: 89% (25/28)\nResolving deltas: 92% (26/28)\nResolving deltas: 96% (27/28)\nResolving deltas: 100% (28/28)\nResolving deltas: 100% (28/28), done.\nFrom https://github.com/sanic-org/sanic\n * [new ref] c70813b35243c936909c498015f2d60e376efb7f -> pull/2870/merge\n##[endgroup]\n##[group]Determining the checkout info\n##[endgroup]\n##[group]Checking out the ref\n[command]/usr/bin/git checkout --progress --force refs/remotes/pull/2870/merge\nNote: switching to 'refs/remotes/pull/2870/merge'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c \n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at c70813b Merge 2e41e783672597e2e0c7b2842b5934d879374028 into d0bbcf55d540e8d4c9d8bb1108384d8545355fcb\n##[endgroup]\n[command]/usr/bin/git log -1 --format='%H'\n'c70813b35243c936909c498015f2d60e376efb7f'\n##[group]Run actions/setup-python@v4\nwith:\n python-version: 3.12\n check-latest: false\n token: ***\n update-environment: true\n allow-prereleases: false\n##[endgroup]\n##[group]Installed versions\nSuccessfully set up CPython (3.12.1)\n##[endgroup]\n##[group]Run python -m pip install --upgrade pip\n\u001b[36;1mpython -m pip install --upgrade pip\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nRequirement already satisfied: pip in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (23.3.1)\nCollecting pip\n Downloading pip-23.3.2-py3-none-any.whl.metadata (3.5 kB)\nDownloading pip-23.3.2-py3-none-any.whl (2.1 MB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.1/2.1 MB 47.5 MB/s eta 0:00:00\nInstalling collected packages: pip\n Attempting uninstall: pip\n Found existing installation: pip 23.3.1\n Uninstalling pip-23.3.1:\n Successfully uninstalled pip-23.3.1\nSuccessfully installed pip-23.3.2\n##[group]Run pip install tox\n\u001b[36;1mpip install tox\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCollecting tox\n Downloading tox-4.11.4-py3-none-any.whl.metadata (5.0 kB)\nCollecting cachetools>=5.3.1 (from tox)\n Downloading cachetools-5.3.2-py3-none-any.whl.metadata (5.2 kB)\nCollecting chardet>=5.2 (from tox)\n Downloading chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)\nCollecting colorama>=0.4.6 (from tox)\n Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)\nCollecting filelock>=3.12.3 (from tox)\n Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)\nCollecting packaging>=23.1 (from tox)\n Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)\nCollecting platformdirs>=3.10 (from tox)\n Downloading platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)\nCollecting pluggy>=1.3 (from tox)\n Downloading pluggy-1.3.0-py3-none-any.whl.metadata (4.3 kB)\nCollecting pyproject-api>=1.6.1 (from tox)\n Downloading pyproject_api-1.6.1-py3-none-any.whl.metadata (2.8 kB)\nCollecting virtualenv>=20.24.3 (from tox)\n Downloading virtualenv-20.25.0-py3-none-any.whl.metadata (4.5 kB)\nCollecting distlib<1,>=0.3.7 (from virtualenv>=20.24.3->tox)\n Downloading distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)\nDownloading tox-4.11.4-py3-none-any.whl (153 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 154.0/154.0 kB 20.8 MB/s eta 0:00:00\nDownloading cachetools-5.3.2-py3-none-any.whl (9.3 kB)\nDownloading chardet-5.2.0-py3-none-any.whl (199 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 199.4/199.4 kB 55.5 MB/s eta 0:00:00\nDownloading filelock-3.13.1-py3-none-any.whl (11 kB)\nDownloading packaging-23.2-py3-none-any.whl (53 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 53.0/53.0 kB 18.1 MB/s eta 0:00:00\nDownloading platformdirs-4.1.0-py3-none-any.whl (17 kB)\nDownloading pluggy-1.3.0-py3-none-any.whl (18 kB)\nDownloading pyproject_api-1.6.1-py3-none-any.whl (12 kB)\nDownloading virtualenv-20.25.0-py3-none-any.whl (3.8 MB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 3.8/3.8 MB 54.9 MB/s eta 0:00:00\nDownloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 468.9/468.9 kB 67.5 MB/s eta 0:00:00\nInstalling collected packages: distlib, pluggy, platformdirs, packaging, filelock, colorama, chardet, cachetools, virtualenv, pyproject-api, tox\nSuccessfully installed cachetools-5.3.2 chardet-5.2.0 colorama-0.4.6 distlib-0.3.8 filelock-3.13.1 packaging-23.2 platformdirs-4.1.0 pluggy-1.3.0 pyproject-api-1.6.1 tox-4.11.4 virtualenv-20.25.0\n##[group]Run env=\"\"\n\u001b[36;1menv=\"\"\u001b[0m\n\u001b[36;1mif [[ ! -z \"py312\" ]]; then\u001b[0m\n\u001b[36;1m env+=\"-e py312\"\u001b[0m\n\u001b[36;1mfi\u001b[0m\n\u001b[36;1mecho \"args=$env\" >> $GITHUB_OUTPUT\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\n##[group]Run nick-fields/retry@v2\nwith:\n timeout_minutes: 10\n max_attempts: 3\n continue_on_error: false\n warning_on_retry: false\n command: tox -e py312\n retry_wait_seconds: 10\n polling_interval_seconds: 1\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\npy312: install_deps> python -I -m pip install 'httpx>=0.23' setuptools\n.pkg: install_requires> python -I -m pip install setuptools wheel\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: install_requires_for_build_editable> python -I -m pip install wheel\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\npy312: install_package_deps> python -I -m pip install 'aiofiles>=0.6.0' aioquic bandit beautifulsoup4 'chardet==3.*' coverage docutils 'html5tagger>=1.2.1' 'httptools>=0.0.10' 'multidict<7.0,>=5.0' mypy pygments pytest-benchmark pytest-sanic 'pytest==7.1.*' ruff 'sanic-routing@ git+https://github.com/sanic-org/sanic-routing.git' 'sanic-testing>=23.6.0' 'slotscheck<1,>=0.8.0' 'tracerite>=1.0.0' 'types-ujson; sys_platform != \"win32\" and implementation_name == \"cpython\"' 'typing-extensions>=4.4.0' 'ujson>=1.35; sys_platform != \"win32\" and implementation_name == \"cpython\"' 'uvicorn<0.15.0' 'uvloop>=0.15.0; sys_platform != \"win32\" and implementation_name == \"cpython\"' 'websockets>=10.0'\npy312: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sanic/sanic/.tox/.tmp/package/1/sanic-23.12.0-0.editable-py3-none-any.whl\npy312: freeze> python -m pip freeze --all\npy312: aiofiles==23.2.1,aioquic==0.9.24,anyio==4.2.0,asgiref==3.7.2,async-generator==1.10,attrs==23.1.0,bandit==1.7.6,beautifulsoup4==4.12.2,certifi==2023.11.17,cffi==1.16.0,chardet==3.0.4,click==8.1.7,coverage==7.3.3,cryptography==41.0.7,docutils==0.20.1,gitdb==4.0.11,GitPython==3.1.40,h11==0.14.0,html5tagger==1.3.0,httpcore==1.0.2,httptools==0.6.1,httpx==0.25.2,idna==3.6,iniconfig==2.0.0,markdown-it-py==3.0.0,mdurl==0.1.2,multidict==6.0.4,mypy==1.7.1,mypy-extensions==1.0.0,packaging==23.2,pbr==6.0.0,pip==23.3.1,pluggy==1.3.0,py==1.11.0,py-cpuinfo==9.0.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycparser==2.21,Pygments==2.17.2,pylsqpack==0.3.18,pyOpenSSL==23.3.0,pytest==7.1.3,pytest-benchmark==4.0.0,pytest-sanic==1.9.1,PyYAML==6.0.1,rich==13.7.0,ruff==0.1.8,sanic @ file:///home/runner/work/sanic/sanic/.tox/.tmp/package/1/sanic-23.12.0-0.editable-py3-none-any.whl#sha256=56e6d7f737084de3b363bf69d559509f355c597274a992497dac135b20931485,sanic-routing @ git+https://github.com/sanic-org/sanic-routing.git@0f9405d6a7381ec11b30dafb2577e4b2d2318e45,sanic-testing==23.6.0,service-identity==23.1.0,setuptools==69.0.2,slotscheck==0.17.1,smmap==5.0.1,sniffio==1.3.0,soupsieve==2.5,stevedore==5.1.0,tomli==2.0.1,tracerite==1.1.1,types-ujson==5.9.0.0,typing_extensions==4.9.0,ujson==5.9.0,uvicorn==0.14.0,uvloop==0.19.0,websockets==10.4\npy312: commands[0]> coverage run --source ./sanic -m pytest tests\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:940: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:943: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expr = ast.IfExp(test, self.display(name), ast.Str(name.id))\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:914: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n assertmsg = ast.Str(\"\")\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:916: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:804: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n keys = [ast.Str(key) for key in current.keys()]\n/home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:928: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead\n clear = ast.Assign(variables, ast.NameConstant(None))\ncollected 1661 items\n\ntests/test_app.py ...................................................... [ 3%]\n. [ 3%]\ntests/test_asgi.py ........................ [ 4%]\ntests/test_bad_request.py . [ 4%]\ntests/test_base.py ..................... [ 6%]\ntests/test_blueprint_copy.py ... [ 6%]\ntests/test_blueprint_group.py .......... [ 6%]\ntests/test_blueprints.py ............................................ [ 9%]\ntests/test_cancellederror.py . [ 9%]\ntests/test_cli.py ...................................................... [ 12%]\n [ 12%]\ntests/test_coffee.py .... [ 13%]\ntests/test_config.py ......................................... [ 15%]\ntests/test_constants.py ...... [ 15%]\ntests/test_cookies.py ................................... [ 18%]\ntests/test_create_task.py ..... [ 18%]\ntests/test_custom_request.py . [ 18%]\ntests/test_deprecation.py .... [ 18%]\ntests/test_dynamic_routes.py .... [ 18%]\ntests/test_errorpages.py ............................................... [ 21%]\n....... [ 22%]\ntests/test_exceptions.py ..................... [ 23%]\ntests/test_exceptions_handler.py ............. [ 24%]\ntests/test_ext_integration.py ....... [ 24%]\ntests/test_graceful_shutdown.py x. [ 24%]\ntests/test_handler.py . [ 24%]\ntests/test_handler_annotations.py .... [ 24%]\ntests/test_headers.py .................................................. [ 27%]\n...................... [ 29%]\ntests/test_helpers.py ....... [ 29%]\ntests/test_http.py ... [ 29%]\ntests/test_http_alt_svc.py . [ 29%]\ntests/test_init.py ............. [ 30%]\ntests/test_json_decoding.py ... [ 30%]\ntests/test_json_encoding.py ...s [ 31%]\ntests/test_keep_alive_timeout.py .... [ 31%]\ntests/test_late_adds.py ... [ 31%]\ntests/test_logging.py ................... [ 32%]\ntests/test_logo.py ..... [ 33%]\ntests/test_middleware.py ............... [ 33%]\ntests/test_middleware_priority.py ...................................... [ 36%]\n.............. [ 37%]\ntests/test_motd.py ..... [ 37%]\ntests/test_multiprocessing.py ......... [ 37%]\ntests/test_named_routes.py .......................... [ 39%]\ntests/test_payload_too_large.py ... [ 39%]\ntests/test_pipelining.py .... [ 39%]\ntests/test_prepare.py ..... [ 40%]\ntests/test_redirect.py ......... [ 40%]\ntests/test_reloader.py xxxxxx. [ 41%]\ntests/test_request.py .......................................... [ 43%]\ntests/test_request_cancel.py .. [ 43%]\ntests/test_request_data.py .. [ 43%]\ntests/test_request_stream.py ......... [ 44%]\ntests/test_requests.py ................................................. [ 47%]\n........................................................................ [ 51%]\n........... [ 52%]\ntests/test_response.py ................................................. [ 55%]\n.......... [ 55%]\ntests/test_response_file.py ...... [ 56%]\ntests/test_response_json.py ................ [ 57%]\ntests/test_response_timeout.py .... [ 57%]\ntests/test_routes.py ................................................... [ 60%]\n........................................................................ [ 64%]\n...................................... [ 67%]\ntests/test_server_events.py .................... [ 68%]\ntests/test_server_loop.py ss.. [ 68%]\ntests/test_signal_handlers.py ...... [ 69%]\ntests/test_signals.py ................................................. [ 72%]\ntests/test_static.py ..........sssss.................................... [ 75%]\n.......................................s [ 77%]\ntests/test_static_directory.py ....... [ 77%]\ntests/test_tasks.py ...... [ 78%]\ntests/test_test_client_port.py .. [ 78%]\ntests/test_timeout_logic.py ..... [ 78%]\ntests/test_tls.py ........xxx................................... [ 81%]\ntests/test_touchup.py ......... [ 81%]\ntests/test_unix_socket.py x........ [ 82%]\ntests/test_url_building.py ........................... [ 84%]\ntests/test_url_for.py ......... [ 84%]\ntests/test_url_for_static.py ..................... [ 85%]\ntests/test_utf8.py ... [ 86%]\ntests/test_utils.py ...... [ 86%]\ntests/test_versioning.py .............. [ 87%]\ntests/test_vhosts.py ... [ 87%]\ntests/test_views.py ................... [ 88%]\ntests/test_websockets.py ......................FFF...... [ 90%]\ntests/test_ws_handlers.py ........ [ 91%]\ntests/benchmark/test_route_resolution_benchmark.py .. [ 91%]\ntests/http3/test_http_receiver.py ............ [ 91%]\ntests/http3/test_server.py .... [ 92%]\ntests/http3/test_session_ticket_store.py . [ 92%]\ntests/typing/test_typing.py ....... [ 92%]\ntests/worker/test_inspector.py ......... [ 93%]\ntests/worker/test_loader.py ............ [ 93%]\ntests/worker/test_manager.py ................ [ 94%]\ntests/worker/test_multiplexer.py ................. [ 95%]\ntests/worker/test_reloader.py .......... [ 96%]\ntests/worker/test_runner.py .... [ 96%]\ntests/worker/test_shared_ctx.py ............... [ 97%]\ntests/worker/test_socket.py .. [ 97%]\ntests/worker/test_startup.py ......... [ 98%]\ntests/worker/test_state.py .................... [ 99%]\ntests/worker/test_worker_serve.py ......... [100%]\n\n=================================== FAILURES ===================================\n___________________ test_ws_frame_put_message_into_queue[0] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[1] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[2] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n=============================== warnings summary ===============================\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:940: 3106 warnings\ntests/test_app.py: 4 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:940: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:943: 3106 warnings\ntests/test_app.py: 4 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:943: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expr = ast.IfExp(test, self.display(name), ast.Str(name.id))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1053: 2250 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1053: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n syms.append(ast.Str(sym))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1055: 2250 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:1055: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expls.append(ast.Str(expl))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:804: 10789 warnings\ntests/test_app.py: 13 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:804: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n keys = [ast.Str(key) for key in current.keys()]\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:914: 2440 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:914: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n assertmsg = ast.Str(\"\")\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:916: 2444 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:916: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:928: 2428 warnings\ntests/test_app.py: 3 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:928: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead\n clear = ast.Assign(variables, ast.NameConstant(None))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:965: 22 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:965: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expl_format = self.pop_format_context(ast.Str(expl))\n\n.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:977: 11 warnings\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:977: DeprecationWarning: ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant instead\n expl_template = self.helper(\"_format_boolop\", expl_list, ast.Num(is_or))\n\ntests/test_app.py: 9 warnings\ntests/test_asgi.py: 14 warnings\ntests/test_bad_request.py: 1 warning\ntests/test_blueprint_copy.py: 2 warnings\ntests/test_blueprint_group.py: 3 warnings\ntests/test_blueprints.py: 39 warnings\ntests/test_cancellederror.py: 1 warning\ntests/test_cli.py: 22 warnings\ntests/test_coffee.py: 1 warning\ntests/test_config.py: 2 warnings\ntests/test_constants.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_create_task.py: 4 warnings\ntests/test_custom_request.py: 1 warning\ntests/test_dynamic_routes.py: 3 warnings\ntests/test_errorpages.py: 18 warnings\ntests/test_exceptions.py: 341 warnings\ntests/test_exceptions_handler.py: 9 warnings\ntests/test_ext_integration.py: 4 warnings\ntests/test_graceful_shutdown.py: 2 warnings\ntests/test_handler.py: 1 warning\ntests/test_handler_annotations.py: 4 warnings\ntests/test_headers.py: 3 warnings\ntests/test_http.py: 3 warnings\ntests/test_http_alt_svc.py: 1 warning\ntests/test_json_decoding.py: 1 warning\ntests/test_keep_alive_timeout.py: 84 warnings\ntests/test_logging.py: 14 warnings\ntests/test_middleware.py: 15 warnings\ntests/test_middleware_priority.py: 46 warnings\ntests/test_multiprocessing.py: 6 warnings\ntests/test_named_routes.py: 1 warning\ntests/test_payload_too_large.py: 3 warnings\ntests/test_pipelining.py: 4 warnings\ntests/test_redirect.py: 9 warnings\ntests/test_request.py: 13 warnings\ntests/test_request_cancel.py: 2 warnings\ntests/test_request_data.py: 2 warnings\ntests/test_request_stream.py: 9 warnings\ntests/test_requests.py: 128 warnings\ntests/test_response.py: 58 warnings\ntests/test_response_json.py: 16 warnings\ntests/test_response_timeout.py: 4 warnings\ntests/test_routes.py: 69 warnings\ntests/test_server_events.py: 15 warnings\ntests/test_signal_handlers.py: 3 warnings\ntests/test_signals.py: 5 warnings\ntests/test_static.py: 79 warnings\ntests/test_static_directory.py: 6 warnings\ntests/test_tasks.py: 1 warning\ntests/test_test_client_port.py: 2 warnings\ntests/test_tls.py: 13 warnings\ntests/test_touchup.py: 6 warnings\ntests/test_unix_socket.py: 4 warnings\ntests/test_url_building.py: 11 warnings\ntests/test_url_for.py: 3 warnings\ntests/test_url_for_static.py: 21 warnings\ntests/test_utf8.py: 3 warnings\ntests/test_versioning.py: 14 warnings\ntests/test_vhosts.py: 3 warnings\ntests/test_views.py: 19 warnings\ntests/test_ws_handlers.py: 8 warnings\ntests/http3/test_server.py: 3 warnings\ntests/worker/test_inspector.py: 6 warnings\ntests/worker/test_multiplexer.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:70: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n if hasattr(event, \"s\"):\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 18 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py::test_cookie_customization\ntests/test_cookies.py::test_false_cookies_encoded[False-False]\ntests/test_cookies.py::test_false_cookies_encoded[True-True]\ntests/test_cookies.py::test_false_cookies[False-False]\ntests/test_cookies.py::test_false_cookies[True-True]\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.httponly=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n return super().__new__(cls)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n return super().__new__(cls)\n\ntests/test_cli.py: 21 warnings\ntests/test_exceptions.py: 336 warnings\ntests/test_keep_alive_timeout.py: 84 warnings\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:71: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n event_name = getattr(event, \"value\", event.s)\n\ntests/test_cookies.py::test_cookies\ntests/test_cookies.py::test_cookies_asgi\ntests/test_cookies.py::test_http2_cookies\ntests/test_requests.py::test_request_cookies\ntests/test_requests.py::test_request_cookies_asgi\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'test', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['test'] to request.cookies.get('test'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py: 12 warnings\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Direct encoding of a Cookie object has been deprecated and will be removed in v24.3.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_expires[expires0]\ntests/test_cookies.py::test_cookie_expires_illegal_instance_type[Fri, 21-Dec-2018 15:30:00 GMT]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.expires=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_deletion\ntests/test_cookies.py::test_cookie_jar_old_school_delete_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Deleting cookie values using the dict pattern has been deprecated. You should instead use the cookies.delete_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_set_unknown_property\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.invalid=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[0]\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\ntests/test_cookies.py::test_cookie_bad_max_age[30.0]\ntests/test_cookies.py::test_cookie_bad_max_age[30.1]\ntests/test_cookies.py::test_cookie_bad_max_age[test]\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.max-age=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:210: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:217: 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).\n expires = datetime.utcnow().replace(microsecond=0) + timedelta(\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:249: 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).\n expires_time = datetime.utcnow().replace(microsecond=0) + expires\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:263: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one; foo=two]\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one;foo=two]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'foo', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['foo'] to request.cookies.get('foo'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.domain=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.path=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.secure=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.samesite=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'one', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['one'] to request.cookies.get('one'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'two', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['two'] to request.cookies.get('two'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'three', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['three'] to request.cookies.get('three'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_custom_request.py: 1 warning\ntests/test_payload_too_large.py: 1 warning\ntests/test_pipelining.py: 2 warnings\ntests/test_request_stream.py: 28 warnings\ntests/test_requests.py: 41 warnings\ntests/test_utf8.py: 1 warning\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.\n warnings.warn(message, DeprecationWarning)\n\ntests/test_errorpages.py::test_guess_mime_logging[-auto-*/*-The client accepts */*, using 'json' from request.json]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Response type was determined by the JSON content of the request. This behavior is deprecated and will be removed in v24.3. Please specify the format either by\n error_format=\"json\" on route fakeroute, by\n FALLBACK_ERROR_FORMAT = \"json\", or by adding header\n accept: application/json to your requests.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_multiprocessing.py: 16 warnings\ntests/test_tls.py: 4 warnings\ntests/test_unix_socket.py: 3 warnings\ntests/worker/test_multiplexer.py: 2 warnings\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=2164) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n\ntests/test_signals.py::test_invalid_signal[foo..baz]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/weakref.py:104: RuntimeWarning: coroutine 'Loop.create_server' was never awaited\n def __init__(self, other=(), /, **kw):\n\ntests/test_tasks.py::test_purge_tasks\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/pytest_sanic/plugin.py:76: RuntimeWarning: coroutine 'dummy' was never awaited\n loop.run_until_complete(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_timeout_logic.py::test_check_timeouts_no_timeout\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:404: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n def __init__(self, /, *args, **kwargs):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_url_attributes_with_ssl_context[/moo/boo-arg1=val1-https://{}:{}/moo/boo?arg1=val1]\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/sanic_routing/route.py:309: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n return tuple(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n context = ssl.SSLContext()\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n context = ssl.SSLContext()\n\ntests/test_websockets.py::test_ws_frame_put_fetched[0]\ntests/test_websockets.py::test_ws_frame_put_fetched[1]\ntests/test_websockets.py::test_ws_frame_put_fetched[2]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[0]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[1]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[2]\n /home/runner/work/sanic/sanic/sanic/server/websockets/frame.py:291: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited\n self.message_fetched.clear()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_send_headers\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:2185: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, name, parent):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_stream_id\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/sanic_routing/tree.py:435: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, router) -> None:\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_conn_info\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/weakref.py:104: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, other=(), /, **kw):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_header_encoding\n :685: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------------------------------------------------------------------------------------------------- benchmark: 2 tests ----------------------------------------------------------------------------------------------------\nName (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_resolve_route_no_arg_string_path 919.7150 (1.0) 22,357.5190 (1.96) 1,028.9591 (1.0) 675.3904 (2.04) 1,009.4915 (1.0) 18.2145 (1.0) 1;50 971.8559 (1.0) 1000 1000\ntest_resolve_route_with_typed_args 934.0110 (1.02) 11,421.9020 (1.0) 1,036.0337 (1.01) 330.4639 (1.0) 1,035.6305 (1.03) 24.8865 (1.37) 1;160 965.2196 (0.99) 1000 1000\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\nLegend:\n Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.\n OPS: Operations Per Second, computed as 1 / Mean\n=========================== short test summary info ============================\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[0] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[1] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[2] - At...\n= 3 failed, 1638 passed, 9 skipped, 11 xfailed, 30772 warnings in 232.06s (0:03:52) =\npy312: exit 1 (237.15 seconds) /home/runner/work/sanic/sanic> coverage run --source ./sanic -m pytest tests pid=2164\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n py312: FAIL code 1 (265.07=setup[27.92]+cmd[237.15] seconds)\n evaluation failed :( (265.80 seconds)\nAttempt 1 failed. Reason: Child_process exited with error code 1\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\npy312: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sanic/sanic/.tox/.tmp/package/2/sanic-23.12.0-0.editable-py3-none-any.whl\npy312: freeze> python -m pip freeze --all\npy312: aiofiles==23.2.1,aioquic==0.9.24,anyio==4.2.0,asgiref==3.7.2,async-generator==1.10,attrs==23.1.0,bandit==1.7.6,beautifulsoup4==4.12.2,certifi==2023.11.17,cffi==1.16.0,chardet==3.0.4,click==8.1.7,coverage==7.3.3,cryptography==41.0.7,docutils==0.20.1,gitdb==4.0.11,GitPython==3.1.40,h11==0.14.0,html5tagger==1.3.0,httpcore==1.0.2,httptools==0.6.1,httpx==0.25.2,idna==3.6,iniconfig==2.0.0,markdown-it-py==3.0.0,mdurl==0.1.2,multidict==6.0.4,mypy==1.7.1,mypy-extensions==1.0.0,packaging==23.2,pbr==6.0.0,pip==23.3.1,pluggy==1.3.0,py==1.11.0,py-cpuinfo==9.0.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycparser==2.21,Pygments==2.17.2,pylsqpack==0.3.18,pyOpenSSL==23.3.0,pytest==7.1.3,pytest-benchmark==4.0.0,pytest-sanic==1.9.1,PyYAML==6.0.1,rich==13.7.0,ruff==0.1.8,sanic @ file:///home/runner/work/sanic/sanic/.tox/.tmp/package/2/sanic-23.12.0-0.editable-py3-none-any.whl#sha256=6d63f66205472d98472734dd000cb69f4b649c3af34942a886ee6a5dcd3c88ed,sanic-routing @ git+https://github.com/sanic-org/sanic-routing.git@0f9405d6a7381ec11b30dafb2577e4b2d2318e45,sanic-testing==23.6.0,service-identity==23.1.0,setuptools==69.0.2,slotscheck==0.17.1,smmap==5.0.1,sniffio==1.3.0,soupsieve==2.5,stevedore==5.1.0,tomli==2.0.1,tracerite==1.1.1,types-ujson==5.9.0.0,typing_extensions==4.9.0,ujson==5.9.0,uvicorn==0.14.0,uvloop==0.19.0,websockets==10.4\npy312: commands[0]> coverage run --source ./sanic -m pytest tests\ncollected 1661 items\n\ntests/test_app.py ...................................................... [ 3%]\n. [ 3%]\ntests/test_asgi.py ........................ [ 4%]\ntests/test_bad_request.py . [ 4%]\ntests/test_base.py ..................... [ 6%]\ntests/test_blueprint_copy.py ... [ 6%]\ntests/test_blueprint_group.py .......... [ 6%]\ntests/test_blueprints.py ............................................ [ 9%]\ntests/test_cancellederror.py . [ 9%]\ntests/test_cli.py ...................................................... [ 12%]\n [ 12%]\ntests/test_coffee.py .... [ 13%]\ntests/test_config.py ......................................... [ 15%]\ntests/test_constants.py ...... [ 15%]\ntests/test_cookies.py ................................... [ 18%]\ntests/test_create_task.py ..... [ 18%]\ntests/test_custom_request.py . [ 18%]\ntests/test_deprecation.py .... [ 18%]\ntests/test_dynamic_routes.py .... [ 18%]\ntests/test_errorpages.py ............................................... [ 21%]\n....... [ 22%]\ntests/test_exceptions.py ..................... [ 23%]\ntests/test_exceptions_handler.py ............. [ 24%]\ntests/test_ext_integration.py ....... [ 24%]\ntests/test_graceful_shutdown.py x. [ 24%]\ntests/test_handler.py . [ 24%]\ntests/test_handler_annotations.py .... [ 24%]\ntests/test_headers.py .................................................. [ 27%]\n...................... [ 29%]\ntests/test_helpers.py ....... [ 29%]\ntests/test_http.py ... [ 29%]\ntests/test_http_alt_svc.py . [ 29%]\ntests/test_init.py ............. [ 30%]\ntests/test_json_decoding.py ... [ 30%]\ntests/test_json_encoding.py ...s [ 31%]\ntests/test_keep_alive_timeout.py .... [ 31%]\ntests/test_late_adds.py ... [ 31%]\ntests/test_logging.py ................... [ 32%]\ntests/test_logo.py ..... [ 33%]\ntests/test_middleware.py ............... [ 33%]\ntests/test_middleware_priority.py ...................................... [ 36%]\n.............. [ 37%]\ntests/test_motd.py ..... [ 37%]\ntests/test_multiprocessing.py ......... [ 37%]\ntests/test_named_routes.py .......................... [ 39%]\ntests/test_payload_too_large.py ... [ 39%]\ntests/test_pipelining.py .... [ 39%]\ntests/test_prepare.py ..... [ 40%]\ntests/test_redirect.py ......... [ 40%]\ntests/test_reloader.py xxxxxx. [ 41%]\ntests/test_request.py .......................................... [ 43%]\ntests/test_request_cancel.py .. [ 43%]\ntests/test_request_data.py .. [ 43%]\ntests/test_request_stream.py ......... [ 44%]\ntests/test_requests.py ................................................. [ 47%]\n........................................................................ [ 51%]\n........... [ 52%]\ntests/test_response.py ................................................. [ 55%]\n.......... [ 55%]\ntests/test_response_file.py ...... [ 56%]\ntests/test_response_json.py ................ [ 57%]\ntests/test_response_timeout.py .... [ 57%]\ntests/test_routes.py ................................................... [ 60%]\n........................................................................ [ 64%]\n...................................... [ 67%]\ntests/test_server_events.py .................... [ 68%]\ntests/test_server_loop.py ss.. [ 68%]\ntests/test_signal_handlers.py ...... [ 69%]\ntests/test_signals.py ................................................. [ 72%]\ntests/test_static.py ..........sssss.................................... [ 75%]\n.......................................s [ 77%]\ntests/test_static_directory.py ....... [ 77%]\ntests/test_tasks.py ...... [ 78%]\ntests/test_test_client_port.py .. [ 78%]\ntests/test_timeout_logic.py ..... [ 78%]\ntests/test_tls.py ........xxx................................... [ 81%]\ntests/test_touchup.py ......... [ 81%]\ntests/test_unix_socket.py x........ [ 82%]\ntests/test_url_building.py ........................... [ 84%]\ntests/test_url_for.py ......... [ 84%]\ntests/test_url_for_static.py ..................... [ 85%]\ntests/test_utf8.py ... [ 86%]\ntests/test_utils.py ...... [ 86%]\ntests/test_versioning.py .............. [ 87%]\ntests/test_vhosts.py ... [ 87%]\ntests/test_views.py ................... [ 88%]\ntests/test_websockets.py ......................FFF...... [ 90%]\ntests/test_ws_handlers.py ........ [ 91%]\ntests/benchmark/test_route_resolution_benchmark.py .. [ 91%]\ntests/http3/test_http_receiver.py ............ [ 91%]\ntests/http3/test_server.py .... [ 92%]\ntests/http3/test_session_ticket_store.py . [ 92%]\ntests/typing/test_typing.py ....... [ 92%]\ntests/worker/test_inspector.py ......... [ 93%]\ntests/worker/test_loader.py ............ [ 93%]\ntests/worker/test_manager.py ................ [ 94%]\ntests/worker/test_multiplexer.py ................. [ 95%]\ntests/worker/test_reloader.py .......... [ 96%]\ntests/worker/test_runner.py .... [ 96%]\ntests/worker/test_shared_ctx.py ............... [ 97%]\ntests/worker/test_socket.py .. [ 97%]\ntests/worker/test_startup.py ......... [ 98%]\ntests/worker/test_state.py .................... [ 99%]\ntests/worker/test_worker_serve.py ......... [100%]\n\n=================================== FAILURES ===================================\n___________________ test_ws_frame_put_message_into_queue[0] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[1] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[2] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n=============================== warnings summary ===============================\ntests/test_app.py: 9 warnings\ntests/test_asgi.py: 14 warnings\ntests/test_bad_request.py: 1 warning\ntests/test_blueprint_copy.py: 2 warnings\ntests/test_blueprint_group.py: 3 warnings\ntests/test_blueprints.py: 39 warnings\ntests/test_cancellederror.py: 1 warning\ntests/test_cli.py: 22 warnings\ntests/test_coffee.py: 1 warning\ntests/test_config.py: 2 warnings\ntests/test_constants.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_create_task.py: 4 warnings\ntests/test_custom_request.py: 1 warning\ntests/test_dynamic_routes.py: 3 warnings\ntests/test_errorpages.py: 18 warnings\ntests/test_exceptions.py: 341 warnings\ntests/test_exceptions_handler.py: 9 warnings\ntests/test_ext_integration.py: 4 warnings\ntests/test_graceful_shutdown.py: 2 warnings\ntests/test_handler.py: 1 warning\ntests/test_handler_annotations.py: 4 warnings\ntests/test_headers.py: 3 warnings\ntests/test_http.py: 3 warnings\ntests/test_http_alt_svc.py: 1 warning\ntests/test_json_decoding.py: 1 warning\ntests/test_keep_alive_timeout.py: 84 warnings\ntests/test_logging.py: 14 warnings\ntests/test_middleware.py: 15 warnings\ntests/test_middleware_priority.py: 46 warnings\ntests/test_multiprocessing.py: 6 warnings\ntests/test_named_routes.py: 1 warning\ntests/test_payload_too_large.py: 3 warnings\ntests/test_pipelining.py: 4 warnings\ntests/test_redirect.py: 9 warnings\ntests/test_request.py: 13 warnings\ntests/test_request_cancel.py: 2 warnings\ntests/test_request_data.py: 2 warnings\ntests/test_request_stream.py: 9 warnings\ntests/test_requests.py: 128 warnings\ntests/test_response.py: 58 warnings\ntests/test_response_json.py: 16 warnings\ntests/test_response_timeout.py: 4 warnings\ntests/test_routes.py: 69 warnings\ntests/test_server_events.py: 15 warnings\ntests/test_signal_handlers.py: 3 warnings\ntests/test_signals.py: 5 warnings\ntests/test_static.py: 79 warnings\ntests/test_static_directory.py: 6 warnings\ntests/test_tasks.py: 1 warning\ntests/test_test_client_port.py: 2 warnings\ntests/test_tls.py: 13 warnings\ntests/test_touchup.py: 6 warnings\ntests/test_unix_socket.py: 4 warnings\ntests/test_url_building.py: 11 warnings\ntests/test_url_for.py: 3 warnings\ntests/test_url_for_static.py: 21 warnings\ntests/test_utf8.py: 3 warnings\ntests/test_versioning.py: 14 warnings\ntests/test_vhosts.py: 3 warnings\ntests/test_views.py: 19 warnings\ntests/test_ws_handlers.py: 8 warnings\ntests/http3/test_server.py: 3 warnings\ntests/worker/test_inspector.py: 6 warnings\ntests/worker/test_multiplexer.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:70: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n if hasattr(event, \"s\"):\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 18 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py::test_cookie_customization\ntests/test_cookies.py::test_false_cookies_encoded[False-False]\ntests/test_cookies.py::test_false_cookies_encoded[True-True]\ntests/test_cookies.py::test_false_cookies[False-False]\ntests/test_cookies.py::test_false_cookies[True-True]\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.httponly=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n return super().__new__(cls)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n return super().__new__(cls)\n\ntests/test_cli.py: 21 warnings\ntests/test_exceptions.py: 336 warnings\ntests/test_keep_alive_timeout.py: 84 warnings\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:71: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n event_name = getattr(event, \"value\", event.s)\n\ntests/test_cookies.py::test_cookies\ntests/test_cookies.py::test_cookies_asgi\ntests/test_cookies.py::test_http2_cookies\ntests/test_requests.py::test_request_cookies\ntests/test_requests.py::test_request_cookies_asgi\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'test', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['test'] to request.cookies.get('test'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py: 12 warnings\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Direct encoding of a Cookie object has been deprecated and will be removed in v24.3.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_expires[expires0]\ntests/test_cookies.py::test_cookie_expires_illegal_instance_type[Fri, 21-Dec-2018 15:30:00 GMT]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.expires=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_deletion\ntests/test_cookies.py::test_cookie_jar_old_school_delete_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Deleting cookie values using the dict pattern has been deprecated. You should instead use the cookies.delete_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_set_unknown_property\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.invalid=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[0]\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\ntests/test_cookies.py::test_cookie_bad_max_age[30.0]\ntests/test_cookies.py::test_cookie_bad_max_age[30.1]\ntests/test_cookies.py::test_cookie_bad_max_age[test]\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.max-age=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:210: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:217: 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).\n expires = datetime.utcnow().replace(microsecond=0) + timedelta(\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:249: 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).\n expires_time = datetime.utcnow().replace(microsecond=0) + expires\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:263: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one; foo=two]\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one;foo=two]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'foo', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['foo'] to request.cookies.get('foo'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.domain=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.path=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.secure=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.samesite=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'one', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['one'] to request.cookies.get('one'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'two', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['two'] to request.cookies.get('two'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'three', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['three'] to request.cookies.get('three'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_custom_request.py: 1 warning\ntests/test_payload_too_large.py: 1 warning\ntests/test_pipelining.py: 2 warnings\ntests/test_request_stream.py: 28 warnings\ntests/test_requests.py: 41 warnings\ntests/test_utf8.py: 1 warning\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.\n warnings.warn(message, DeprecationWarning)\n\ntests/test_errorpages.py::test_guess_mime_logging[-auto-*/*-The client accepts */*, using 'json' from request.json]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Response type was determined by the JSON content of the request. This behavior is deprecated and will be removed in v24.3. Please specify the format either by\n error_format=\"json\" on route fakeroute, by\n FALLBACK_ERROR_FORMAT = \"json\", or by adding header\n accept: application/json to your requests.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_multiprocessing.py: 16 warnings\ntests/test_tls.py: 4 warnings\ntests/test_unix_socket.py: 3 warnings\ntests/worker/test_multiplexer.py: 2 warnings\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=8050) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n\ntests/test_static.py::test_static_file_specified_host[test.file]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:52: RuntimeWarning: coroutine 'Loop.create_server' was never awaited\n return compile(source, filename, mode, flags,\n\ntests/test_tasks.py::test_purge_tasks\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/pytest_sanic/plugin.py:76: RuntimeWarning: coroutine 'dummy' was never awaited\n loop.run_until_complete(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_timeout_logic.py::test_check_timeouts_request_timeout\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:434: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n new = type(cls.__name__, bases, {'__doc__': cls.__doc__})\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_url_attributes_with_ssl_context[/moo/boo-arg1=val1-https://{}:{}/moo/boo?arg1=val1]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:52: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n return compile(source, filename, mode, flags,\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n context = ssl.SSLContext()\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n context = ssl.SSLContext()\n\ntests/test_views.py::test_methods[GET]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:1789: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n unparser = _Unparser()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_websockets.py::test_ws_frame_put_fetched[0]\ntests/test_websockets.py::test_ws_frame_put_fetched[1]\ntests/test_websockets.py::test_ws_frame_put_fetched[2]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[0]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[1]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[2]\n /home/runner/work/sanic/sanic/sanic/server/websockets/frame.py:291: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited\n self.message_fetched.clear()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_send_headers\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:52: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n return compile(source, filename, mode, flags,\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_stream_id\ntests/http3/test_http_receiver.py::test_request_conn_info\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:406: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n visitor = getattr(self, method, self.generic_visit)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_header_encoding\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/ast.py:257: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def iter_fields(node):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------------------------------------------------------------------------------------------------- benchmark: 2 tests ----------------------------------------------------------------------------------------------------\nName (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_resolve_route_with_typed_args 940.0830 (1.0) 11,328.7800 (1.0) 1,018.3106 (1.0) 326.7959 (1.0) 1,007.4380 (1.00) 16.8465 (1.36) 1;19 982.0186 (1.0) 1000 1000\ntest_resolve_route_no_arg_string_path 979.7060 (1.04) 22,414.2740 (1.98) 1,031.2724 (1.01) 677.4905 (2.07) 1,006.1510 (1.0) 12.3480 (1.0) 1;41 969.6759 (0.99) 1000 1000\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\nLegend:\n Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.\n OPS: Operations Per Second, computed as 1 / Mean\n=========================== short test summary info ============================\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[0] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[1] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[2] - At...\n= 3 failed, 1638 passed, 9 skipped, 11 xfailed, 1891 warnings in 210.94s (0:03:30) =\npy312: exit 1 (214.50 seconds) /home/runner/work/sanic/sanic> coverage run --source ./sanic -m pytest tests pid=8050\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n py312: FAIL code 1 (216.13=setup[1.63]+cmd[214.50] seconds)\n evaluation failed :( (216.28 seconds)\nAttempt 2 failed. Reason: Child_process exited with error code 1\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.3.1,setuptools==69.0.2,wheel==0.42.0\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\npy312: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sanic/sanic/.tox/.tmp/package/3/sanic-23.12.0-0.editable-py3-none-any.whl\npy312: freeze> python -m pip freeze --all\npy312: aiofiles==23.2.1,aioquic==0.9.24,anyio==4.2.0,asgiref==3.7.2,async-generator==1.10,attrs==23.1.0,bandit==1.7.6,beautifulsoup4==4.12.2,certifi==2023.11.17,cffi==1.16.0,chardet==3.0.4,click==8.1.7,coverage==7.3.3,cryptography==41.0.7,docutils==0.20.1,gitdb==4.0.11,GitPython==3.1.40,h11==0.14.0,html5tagger==1.3.0,httpcore==1.0.2,httptools==0.6.1,httpx==0.25.2,idna==3.6,iniconfig==2.0.0,markdown-it-py==3.0.0,mdurl==0.1.2,multidict==6.0.4,mypy==1.7.1,mypy-extensions==1.0.0,packaging==23.2,pbr==6.0.0,pip==23.3.1,pluggy==1.3.0,py==1.11.0,py-cpuinfo==9.0.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycparser==2.21,Pygments==2.17.2,pylsqpack==0.3.18,pyOpenSSL==23.3.0,pytest==7.1.3,pytest-benchmark==4.0.0,pytest-sanic==1.9.1,PyYAML==6.0.1,rich==13.7.0,ruff==0.1.8,sanic @ file:///home/runner/work/sanic/sanic/.tox/.tmp/package/3/sanic-23.12.0-0.editable-py3-none-any.whl#sha256=ab2a8fd4976dd590181074cd5462b3885d77bdd37b409090053b533f8f000cc9,sanic-routing @ git+https://github.com/sanic-org/sanic-routing.git@0f9405d6a7381ec11b30dafb2577e4b2d2318e45,sanic-testing==23.6.0,service-identity==23.1.0,setuptools==69.0.2,slotscheck==0.17.1,smmap==5.0.1,sniffio==1.3.0,soupsieve==2.5,stevedore==5.1.0,tomli==2.0.1,tracerite==1.1.1,types-ujson==5.9.0.0,typing_extensions==4.9.0,ujson==5.9.0,uvicorn==0.14.0,uvloop==0.19.0,websockets==10.4\npy312: commands[0]> coverage run --source ./sanic -m pytest tests\ncollected 1661 items\n\ntests/test_app.py ...................................................... [ 3%]\n. [ 3%]\ntests/test_asgi.py ........................ [ 4%]\ntests/test_bad_request.py . [ 4%]\ntests/test_base.py ..................... [ 6%]\ntests/test_blueprint_copy.py ... [ 6%]\ntests/test_blueprint_group.py .......... [ 6%]\ntests/test_blueprints.py ............................................ [ 9%]\ntests/test_cancellederror.py . [ 9%]\ntests/test_cli.py ...................................................... [ 12%]\n [ 12%]\ntests/test_coffee.py .... [ 13%]\ntests/test_config.py ......................................... [ 15%]\ntests/test_constants.py ...... [ 15%]\ntests/test_cookies.py ................................... [ 18%]\ntests/test_create_task.py ..... [ 18%]\ntests/test_custom_request.py . [ 18%]\ntests/test_deprecation.py .... [ 18%]\ntests/test_dynamic_routes.py .... [ 18%]\ntests/test_errorpages.py ............................................... [ 21%]\n....... [ 22%]\ntests/test_exceptions.py ..................... [ 23%]\ntests/test_exceptions_handler.py ............. [ 24%]\ntests/test_ext_integration.py ....... [ 24%]\ntests/test_graceful_shutdown.py x. [ 24%]\ntests/test_handler.py . [ 24%]\ntests/test_handler_annotations.py .... [ 24%]\ntests/test_headers.py .................................................. [ 27%]\n...................... [ 29%]\ntests/test_helpers.py ....... [ 29%]\ntests/test_http.py ... [ 29%]\ntests/test_http_alt_svc.py . [ 29%]\ntests/test_init.py ............. [ 30%]\ntests/test_json_decoding.py ... [ 30%]\ntests/test_json_encoding.py ...s [ 31%]\ntests/test_keep_alive_timeout.py .... [ 31%]\ntests/test_late_adds.py ... [ 31%]\ntests/test_logging.py ................... [ 32%]\ntests/test_logo.py ..... [ 33%]\ntests/test_middleware.py ............... [ 33%]\ntests/test_middleware_priority.py ...................................... [ 36%]\n.............. [ 37%]\ntests/test_motd.py ..... [ 37%]\ntests/test_multiprocessing.py ......... [ 37%]\ntests/test_named_routes.py .......................... [ 39%]\ntests/test_payload_too_large.py ... [ 39%]\ntests/test_pipelining.py .... [ 39%]\ntests/test_prepare.py ..... [ 40%]\ntests/test_redirect.py ......... [ 40%]\ntests/test_reloader.py xxxxxx. [ 41%]\ntests/test_request.py .......................................... [ 43%]\ntests/test_request_cancel.py .. [ 43%]\ntests/test_request_data.py .. [ 43%]\ntests/test_request_stream.py ......... [ 44%]\ntests/test_requests.py ................................................. [ 47%]\n........................................................................ [ 51%]\n........... [ 52%]\ntests/test_response.py ................................................. [ 55%]\n.......... [ 55%]\ntests/test_response_file.py ...... [ 56%]\ntests/test_response_json.py ................ [ 57%]\ntests/test_response_timeout.py .... [ 57%]\ntests/test_routes.py ................................................... [ 60%]\n........................................................................ [ 64%]\n...................................... [ 67%]\ntests/test_server_events.py .................... [ 68%]\ntests/test_server_loop.py ss.. [ 68%]\ntests/test_signal_handlers.py ...... [ 69%]\ntests/test_signals.py ................................................. [ 72%]\ntests/test_static.py ..........sssss.................................... [ 75%]\n.......................................s [ 77%]\ntests/test_static_directory.py ....... [ 77%]\ntests/test_tasks.py ...... [ 78%]\ntests/test_test_client_port.py .. [ 78%]\ntests/test_timeout_logic.py ..... [ 78%]\ntests/test_tls.py ........xxx................................... [ 81%]\ntests/test_touchup.py ......... [ 81%]\ntests/test_unix_socket.py x........ [ 82%]\ntests/test_url_building.py ........................... [ 84%]\ntests/test_url_for.py ......... [ 84%]\ntests/test_url_for_static.py ..................... [ 85%]\ntests/test_utf8.py ... [ 86%]\ntests/test_utils.py ...... [ 86%]\ntests/test_versioning.py .............. [ 87%]\ntests/test_vhosts.py ... [ 87%]\ntests/test_views.py ................... [ 88%]\ntests/test_websockets.py ......................FFF...... [ 90%]\ntests/test_ws_handlers.py ........ [ 91%]\ntests/benchmark/test_route_resolution_benchmark.py .. [ 91%]\ntests/http3/test_http_receiver.py ............ [ 91%]\ntests/http3/test_server.py .... [ 92%]\ntests/http3/test_session_ticket_store.py . [ 92%]\ntests/typing/test_typing.py ....... [ 92%]\ntests/worker/test_inspector.py ......... [ 93%]\ntests/worker/test_loader.py ............ [ 93%]\ntests/worker/test_manager.py ................ [ 94%]\ntests/worker/test_multiplexer.py ................. [ 95%]\ntests/worker/test_reloader.py .......... [ 96%]\ntests/worker/test_runner.py .... [ 96%]\ntests/worker/test_shared_ctx.py ............... [ 97%]\ntests/worker/test_socket.py .. [ 97%]\ntests/worker/test_startup.py ......... [ 98%]\ntests/worker/test_state.py .................... [ 99%]\ntests/worker/test_worker_serve.py ......... [100%]\n\n=================================== FAILURES ===================================\n___________________ test_ws_frame_put_message_into_queue[0] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[1] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n___________________ test_ws_frame_put_message_into_queue[2] ____________________\n\nopcode = \n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n \n await assembler.put(Frame(opcode, b\"foo\"))\n \n> assembler.chunks_queue.put.has_calls(\n call(b\"foo\"),\n call(None),\n )\n\n/home/runner/work/sanic/sanic/tests/test_websockets.py:220: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = , name = 'has_calls'\n\n def __getattr__(self, name):\n if name in {'_mock_methods', '_mock_unsafe'}:\n raise AttributeError(name)\n elif self._mock_methods is not None:\n if name not in self._mock_methods or name in _all_magics:\n raise AttributeError(\"Mock object has no attribute %r\" % name)\n elif _is_magic(name):\n raise AttributeError(name)\n if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):\n if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:\n> raise AttributeError(\n f\"{name!r} is not a valid assertion. Use a spec \"\n f\"for the mock if {name!r} is meant to be an attribute.\")\nE AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.\n\n/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:663: AttributeError\n=============================== warnings summary ===============================\ntests/test_app.py: 9 warnings\ntests/test_asgi.py: 14 warnings\ntests/test_bad_request.py: 1 warning\ntests/test_blueprint_copy.py: 2 warnings\ntests/test_blueprint_group.py: 3 warnings\ntests/test_blueprints.py: 39 warnings\ntests/test_cancellederror.py: 1 warning\ntests/test_cli.py: 22 warnings\ntests/test_coffee.py: 1 warning\ntests/test_config.py: 2 warnings\ntests/test_constants.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_create_task.py: 4 warnings\ntests/test_custom_request.py: 1 warning\ntests/test_dynamic_routes.py: 3 warnings\ntests/test_errorpages.py: 18 warnings\ntests/test_exceptions.py: 341 warnings\ntests/test_exceptions_handler.py: 9 warnings\ntests/test_ext_integration.py: 4 warnings\ntests/test_graceful_shutdown.py: 2 warnings\ntests/test_handler.py: 1 warning\ntests/test_handler_annotations.py: 4 warnings\ntests/test_headers.py: 3 warnings\ntests/test_http.py: 3 warnings\ntests/test_http_alt_svc.py: 1 warning\ntests/test_json_decoding.py: 1 warning\ntests/test_keep_alive_timeout.py: 84 warnings\ntests/test_logging.py: 14 warnings\ntests/test_middleware.py: 15 warnings\ntests/test_middleware_priority.py: 46 warnings\ntests/test_multiprocessing.py: 6 warnings\ntests/test_named_routes.py: 1 warning\ntests/test_payload_too_large.py: 3 warnings\ntests/test_pipelining.py: 4 warnings\ntests/test_redirect.py: 9 warnings\ntests/test_request.py: 13 warnings\ntests/test_request_cancel.py: 2 warnings\ntests/test_request_data.py: 2 warnings\ntests/test_request_stream.py: 9 warnings\ntests/test_requests.py: 128 warnings\ntests/test_response.py: 58 warnings\ntests/test_response_json.py: 16 warnings\ntests/test_response_timeout.py: 4 warnings\ntests/test_routes.py: 69 warnings\ntests/test_server_events.py: 15 warnings\ntests/test_signal_handlers.py: 3 warnings\ntests/test_signals.py: 5 warnings\ntests/test_static.py: 79 warnings\ntests/test_static_directory.py: 6 warnings\ntests/test_tasks.py: 1 warning\ntests/test_test_client_port.py: 2 warnings\ntests/test_tls.py: 13 warnings\ntests/test_touchup.py: 6 warnings\ntests/test_unix_socket.py: 4 warnings\ntests/test_url_building.py: 11 warnings\ntests/test_url_for.py: 3 warnings\ntests/test_url_for_static.py: 21 warnings\ntests/test_utf8.py: 3 warnings\ntests/test_versioning.py: 14 warnings\ntests/test_vhosts.py: 3 warnings\ntests/test_views.py: 19 warnings\ntests/test_ws_handlers.py: 8 warnings\ntests/http3/test_server.py: 3 warnings\ntests/worker/test_inspector.py: 6 warnings\ntests/worker/test_multiplexer.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:70: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n if hasattr(event, \"s\"):\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 18 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py: 1 warning\ntests/test_cookies.py: 19 warnings\ntests/test_response.py: 1 warning\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_asgi.py::test_cookie_customization\ntests/test_cookies.py::test_false_cookies_encoded[False-False]\ntests/test_cookies.py::test_false_cookies_encoded[True-True]\ntests/test_cookies.py::test_false_cookies[False-False]\ntests/test_cookies.py::test_false_cookies[True-True]\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.httponly=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n return super().__new__(cls)\n\ntests/test_cli.py: 2 warnings\ntests/test_tls.py: 9 warnings\n /home/runner/work/sanic/sanic/sanic/http/tls/context.py:191: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n return super().__new__(cls)\n\ntests/test_cli.py: 21 warnings\ntests/test_exceptions.py: 336 warnings\ntests/test_keep_alive_timeout.py: 84 warnings\n /home/runner/work/sanic/sanic/sanic/touchup/schemes/ode.py:71: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead\n event_name = getattr(event, \"value\", event.s)\n\ntests/test_cookies.py::test_cookies\ntests/test_cookies.py::test_cookies_asgi\ntests/test_cookies.py::test_http2_cookies\ntests/test_requests.py::test_request_cookies\ntests/test_requests.py::test_request_cookies_asgi\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'test', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['test'] to request.cookies.get('test'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py: 12 warnings\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Direct encoding of a Cookie object has been deprecated and will be removed in v24.3.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_options\ntests/test_cookies.py::test_cookie_expires[expires0]\ntests/test_cookies.py::test_cookie_expires_illegal_instance_type[Fri, 21-Dec-2018 15:30:00 GMT]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.expires=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_deletion\ntests/test_cookies.py::test_cookie_jar_old_school_delete_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION] Deleting cookie values using the dict pattern has been deprecated. You should instead use the cookies.delete_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_set_unknown_property\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.invalid=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[0]\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\ntests/test_cookies.py::test_cookie_bad_max_age[30.0]\ntests/test_cookies.py::test_cookie_bad_max_age[30.1]\ntests/test_cookies.py::test_cookie_bad_max_age[test]\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.max-age=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:210: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_cookie_max_age[300]\ntests/test_cookies.py::test_cookie_max_age[301]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:217: 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).\n expires = datetime.utcnow().replace(microsecond=0) + timedelta(\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:249: 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).\n expires_time = datetime.utcnow().replace(microsecond=0) + expires\n\ntests/test_cookies.py::test_cookie_expires[expires0]\n /home/runner/work/sanic/sanic/tests/test_cookies.py:263: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).\n cookie_expires = datetime.utcfromtimestamp(\n\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one; foo=two]\ntests/test_cookies.py::test_request_with_duplicate_cookie_key[foo=one;foo=two]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'foo', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['foo'] to request.cookies.get('foo'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.domain=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.path=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.secure=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_jar_old_school_cookie_encode\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties: cookie.samesite=... \n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'one', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['one'] to request.cookies.get('one'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'two', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['two'] to request.cookies.get('two'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_cookies.py::test_cookie_accessors\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'three', which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['three'] to request.cookies.get('three'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies\n warn(version_info + message, DeprecationWarning)\n\ntests/test_custom_request.py: 1 warning\ntests/test_payload_too_large.py: 1 warning\ntests/test_pipelining.py: 2 warnings\ntests/test_request_stream.py: 28 warnings\ntests/test_requests.py: 41 warnings\ntests/test_utf8.py: 1 warning\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/httpx/_content.py:204: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.\n warnings.warn(message, DeprecationWarning)\n\ntests/test_errorpages.py::test_guess_mime_logging[-auto-*/*-The client accepts */*, using 'json' from request.json]\n /home/runner/work/sanic/sanic/sanic/log.py:152: DeprecationWarning: [DEPRECATION v24.3] Response type was determined by the JSON content of the request. This behavior is deprecated and will be removed in v24.3. Please specify the format either by\n error_format=\"json\" on route fakeroute, by\n FALLBACK_ERROR_FORMAT = \"json\", or by adding header\n accept: application/json to your requests.\n warn(version_info + message, DeprecationWarning)\n\ntests/test_multiprocessing.py: 16 warnings\ntests/test_tls.py: 4 warnings\ntests/test_unix_socket.py: 3 warnings\ntests/worker/test_multiplexer.py: 2 warnings\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=13875) is multi-threaded, use of fork() may lead to deadlocks in the child.\n self.pid = os.fork()\n\ntests/test_signals.py::test_add_signal_method_handler\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:2185: RuntimeWarning: coroutine 'Loop.create_server' was never awaited\n def __init__(self, name, parent):\n\ntests/test_tasks.py::test_purge_tasks\n /home/runner/work/sanic/sanic/.tox/py312/lib/python3.12/site-packages/pytest_sanic/plugin.py:76: RuntimeWarning: coroutine 'dummy' was never awaited\n loop.run_until_complete(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_url_attributes_with_ssl_context[/foo--https://{}:{}/foo]\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/logging/__init__.py:234: RuntimeWarning: coroutine 'HttpProtocol.connection_task' was never awaited\n def _acquireLock():\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.\n context = ssl.SSLContext()\n\ntests/test_tls.py::test_sanic_ssl_context_create\n /home/runner/work/sanic/sanic/tests/test_tls.py:678: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\n context = ssl.SSLContext()\n\ntests/test_websockets.py::test_ws_frame_put_fetched[0]\ntests/test_websockets.py::test_ws_frame_put_fetched[1]\ntests/test_websockets.py::test_ws_frame_put_fetched[2]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[0]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[1]\ntests/test_websockets.py::test_ws_frame_put_message_into_queue[2]\n /home/runner/work/sanic/sanic/sanic/server/websockets/frame.py:291: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited\n self.message_fetched.clear()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_send_headers\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/unittest/mock.py:2185: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def __init__(self, name, parent):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_stream_id\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/logging/__init__.py:452: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n if not self.validation_pattern.search(self._fmt):\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_conn_info\n /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/weakref.py:117: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n self._iterating = set()\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/http3/test_http_receiver.py::test_request_header_encoding\n /home/runner/work/sanic/sanic/sanic/mixins/routes.py:42: RuntimeWarning: coroutine 'HTTPReceiver.run' was never awaited\n def route(\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------------------------------------------------------------------------------------------------- benchmark: 2 tests ----------------------------------------------------------------------------------------------------\nName (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_resolve_route_no_arg_string_path 984.4250 (1.0) 22,370.3520 (1.93) 1,050.0664 (1.02) 684.2489 (2.04) 1,015.0820 (1.0) 14.0510 (1.38) 12;48 952.3207 (0.98) 1000 1000\ntest_resolve_route_with_typed_args 991.6080 (1.01) 11,604.6940 (1.0) 1,030.1549 (1.0) 334.9181 (1.0) 1,019.3110 (1.00) 10.2095 (1.0) 1;26 970.7278 (1.0) 1000 1000\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\nLegend:\n Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.\n OPS: Operations Per Second, computed as 1 / Mean\n=========================== short test summary info ============================\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[0] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[1] - At...\nFAILED tests/test_websockets.py::test_ws_frame_put_message_into_queue[2] - At...\n= 3 failed, 1638 passed, 9 skipped, 11 xfailed, 1889 warnings in 214.41s (0:03:34) =\npy312: exit 1 (218.00 seconds) /home/runner/work/sanic/sanic> coverage run --source ./sanic -m pytest tests pid=13875\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta\n py312: FAIL code 1 (219.63=setup[1.63]+cmd[218.00] seconds)\n evaluation failed :( (219.78 seconds)\n##[error]Final attempt failed. Child_process exited with error code 1\n"}], "diff": "diff --git a/sanic/__version__.py b/sanic/__version__.py\nindex 1cea76e9..5e62ad89 100644\n--- a/sanic/__version__.py\n+++ b/sanic/__version__.py\n@@ -1 +1 @@\n-__version__ = \"23.12.0\"\n+__version__ = \"23.12.1\"\ndiff --git a/tests/test_websockets.py b/tests/test_websockets.py\nindex dd8413b9..5809cfc0 100644\n--- a/tests/test_websockets.py\n+++ b/tests/test_websockets.py\n@@ -5,7 +5,7 @@ from unittest.mock import Mock, call\n \n import pytest\n \n-from websockets.frames import CTRL_OPCODES, DATA_OPCODES, Frame\n+from websockets.frames import CTRL_OPCODES, DATA_OPCODES, Frame, OP_TEXT\n \n from sanic.exceptions import ServerError\n from sanic.server.websockets.frame import WebsocketFrameAssembler\n@@ -210,17 +210,14 @@ async def test_ws_frame_put_message_complete(opcode):\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\"opcode\", DATA_OPCODES)\n async def test_ws_frame_put_message_into_queue(opcode):\n+ foo = 'foo' if (opcode == OP_TEXT) else b\"foo\"\n assembler = WebsocketFrameAssembler(Mock())\n assembler.chunks_queue = AsyncMock(spec=Queue)\n assembler.message_fetched = AsyncMock()\n assembler.message_fetched.is_set = Mock(return_value=False)\n-\n await assembler.put(Frame(opcode, b\"foo\"))\n \n- assembler.chunks_queue.put.has_calls(\n- call(b\"foo\"),\n- call(None),\n- )\n+ assert assembler.chunks_queue.put.call_args_list == [call(foo), call(None)]\n \n \n @pytest.mark.asyncio\n", "difficulty": "2"}