15:43:21 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126680 15:43:21 Running as SYSTEM 15:43:21 [EnvInject] - Loading node environment variables. 15:43:21 Building remotely on prd-ubuntu2204-docker-4c-16g-62466 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 15:43:22 [ssh-agent] Looking for ssh-agent implementation... 15:43:22 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:43:22 $ ssh-agent 15:43:22 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXQLpowL/agent.1568 15:43:22 SSH_AGENT_PID=1570 15:43:22 [ssh-agent] Started. 15:43:22 Running ssh-add (command line suppressed) 15:43:22 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_16430266841062280300.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_16430266841062280300.key) 15:43:22 [ssh-agent] Using credentials jenkins (jenkins-ssh) 15:43:22 The recommended git tool is: NONE 15:43:24 using credential jenkins-ssh 15:43:24 Wiping out workspace first. 15:43:24 Cloning the remote Git repository 15:43:24 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 15:43:24 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 15:43:24 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:43:24 > git --version # timeout=10 15:43:24 > git --version # 'git version 2.34.1' 15:43:24 using GIT_SSH to set credentials jenkins-ssh 15:43:24 Verifying host key using known hosts file, will automatically accept unseen keys 15:43:24 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 15:43:28 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:43:28 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:43:29 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:43:29 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:43:29 using GIT_SSH to set credentials jenkins-ssh 15:43:29 Verifying host key using known hosts file, will automatically accept unseen keys 15:43:29 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/80/126680/1 # timeout=10 15:43:29 > git rev-parse a44ec78ce7b95768344aed547759b39320b56169^{commit} # timeout=10 15:43:29 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 15:43:29 Checking out Revision a44ec78ce7b95768344aed547759b39320b56169 (refs/changes/80/126680/1) 15:43:29 > git config core.sparsecheckout # timeout=10 15:43:29 > git checkout -f a44ec78ce7b95768344aed547759b39320b56169 # timeout=10 15:43:32 Commit message: "Fix test-common code style violations" 15:43:32 > git rev-parse FETCH_HEAD^{commit} # timeout=10 15:43:33 > git rev-list --no-walk e7da138c8b5751d49f2f1b179c4b029fd24c72f8 # timeout=10 15:43:33 > git remote # timeout=10 15:43:33 > git submodule init # timeout=10 15:43:33 > git submodule sync # timeout=10 15:43:33 > git config --get remote.origin.url # timeout=10 15:43:33 > git submodule init # timeout=10 15:43:33 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 15:43:33 ERROR: No submodules found. 15:43:33 provisioning config files... 15:43:33 copy managed file [npmrc] to file:/home/jenkins/.npmrc 15:43:33 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 15:43:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12001728171994592122.sh 15:43:33 ---> python-tools-install.sh 15:43:33 Setup pyenv: 15:43:33 * system (set by /opt/pyenv/version) 15:43:33 * 3.8.20 (set by /opt/pyenv/version) 15:43:33 * 3.9.20 (set by /opt/pyenv/version) 15:43:33 3.10.15 15:43:33 3.11.10 15:43:38 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-JG0U 15:43:38 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 15:43:38 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:43:43 lf-activate-venv(): INFO: Installing additional packages: lftools 15:44:13 lf-activate-venv(): INFO: Adding /tmp/venv-JG0U/bin to PATH 15:44:13 Generating Requirements File 15:44:44 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 15:44:44 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 15:44:44 Python 3.11.10 15:44:44 pip 26.2.1 from /tmp/venv-JG0U/lib/python3.11/site-packages/pip (python 3.11) 15:44:45 aiohappyeyeballs==2.7.1 15:44:45 aiohttp==3.14.4 15:44:45 aiosignal==1.4.0 15:44:45 appdirs==1.4.4 15:44:45 argcomplete==3.7.2 15:44:45 aspy.yaml==1.3.0 15:44:45 attrs==26.1.0 15:44:45 autopage==0.6.0 15:44:45 beautifulsoup4==4.15.0 15:44:45 boto3==1.43.108 15:44:45 botocore==1.43.108 15:44:45 bs4==0.0.2 15:44:45 certifi==2026.7.22 15:44:45 cffi==2.1.1 15:44:45 cfgv==3.5.0 15:44:45 chardet==7.6.0 15:44:45 charset-normalizer==3.5.2 15:44:45 click==8.5.0 15:44:45 cliff==4.16.0 15:44:45 cmd2==4.2.4 15:44:45 cryptography==3.3.2 15:44:45 debtcollector==3.1.0 15:44:45 decorator==5.3.1 15:44:45 defusedxml==0.7.1 15:44:45 Deprecated==1.3.1 15:44:45 distlib==0.4.3 15:44:45 dnspython==2.8.0 15:44:45 docker==7.2.0 15:44:45 dogpile.cache==1.5.0 15:44:45 durationpy==0.11 15:44:45 email-validator==2.3.0 15:44:45 filelock==4.0.12 15:44:45 frozenlist==1.8.0 15:44:45 future==1.0.0 15:44:45 gitdb==4.0.12 15:44:45 GitPython==3.2.0 15:44:45 httplib2==0.30.2 15:44:45 identify==2.6.20 15:44:45 idna==3.20 15:44:45 importlib-resources==1.5.0 15:44:45 iso8601==2.1.0 15:44:45 Jinja2==3.1.6 15:44:45 jmespath==1.1.0 15:44:45 jsonpatch==1.33 15:44:45 jsonpointer==3.1.1 15:44:45 jsonschema==4.26.0 15:44:45 jsonschema-specifications==2025.9.1 15:44:45 keystoneauth1==5.17.0 15:44:45 kubernetes==36.0.3 15:44:45 lftools==0.37.23 15:44:45 lxml==6.1.3 15:44:45 markdown-it-py==4.2.0 15:44:45 MarkupSafe==3.0.4 15:44:45 mdurl==0.1.2 15:44:45 msgpack==1.2.3 15:44:45 multi_key_dict==2.0.3 15:44:45 multidict==6.9.1 15:44:45 munch==4.0.0 15:44:45 netaddr==1.3.0 15:44:45 niet==1.4.2 15:44:45 nodeenv==1.11.0 15:44:45 oauth2client==4.1.3 15:44:45 oauthlib==4.0.0 15:44:45 openstacksdk==4.20.0 15:44:45 os-service-types==1.9.0 15:44:45 osc-lib==4.7.0 15:44:45 oslo.config==10.7.0 15:44:45 oslo.context==6.5.0 15:44:45 oslo.i18n==6.9.0 15:44:45 oslo.log==8.3.2 15:44:45 oslo.serialization==5.11.0 15:44:45 oslo.utils==10.2.0 15:44:45 packaging==26.3 15:44:45 pbr==7.0.3 15:44:45 platformdirs==4.12.3 15:44:45 prettytable==3.18.0 15:44:45 prompt_toolkit==3.0.53 15:44:45 propcache==0.5.4 15:44:45 psutil==7.2.2 15:44:45 pyasn1==0.6.4 15:44:45 pyasn1_modules==0.4.2 15:44:45 pycparser==3.0 15:44:45 pygerrit2==2.0.15 15:44:45 PyGithub==2.10.0 15:44:45 Pygments==2.21.0 15:44:45 PyJWT==2.15.1 15:44:45 PyNaCl==1.6.2 15:44:45 pyparsing==2.4.7 15:44:45 pyperclip==1.11.0 15:44:45 pyrsistent==0.20.0 15:44:45 python-dateutil==2.9.0.post0 15:44:45 python-discovery==1.6.1 15:44:45 python-heatclient==5.3.0 15:44:45 python-jenkins==1.8.3 15:44:45 python-keystoneclient==6.0.0 15:44:45 python-magnumclient==5.0.0 15:44:45 python-manilaclient==6.3.0 15:44:45 python-openstackclient==10.3.0 15:44:45 python-swiftclient==4.11.0 15:44:45 PyYAML==6.0.3 15:44:45 referencing==0.37.0 15:44:45 requests==2.34.2 15:44:45 requests-oauthlib==2.0.0 15:44:45 rfc3986==2.0.0 15:44:45 rich==15.0.0 15:44:45 rich-argparse==1.8.0 15:44:45 rpds-py==2026.9.1 15:44:45 rsa==4.9.1 15:44:45 ruamel.yaml==0.19.1 15:44:45 ruamel.yaml.clib==0.2.15 15:44:45 s3transfer==0.19.2 15:44:45 simplejson==4.2.0 15:44:45 six==1.17.0 15:44:45 smmap==5.0.3 15:44:45 soupsieve==2.10 15:44:45 stevedore==5.9.1 15:44:45 tabulate==0.10.0 15:44:45 toml==0.10.2 15:44:45 tomlkit==0.15.1 15:44:45 tqdm==4.70.1 15:44:45 typing_extensions==4.16.0 15:44:45 urllib3==1.26.20 15:44:45 virtualenv==21.14.5 15:44:45 wcwidth==0.9.2 15:44:45 websocket-client==1.9.2 15:44:45 wrapt==2.5.0 15:44:45 xdg==6.0.0 15:44:45 xmltodict==1.0.4 15:44:45 yarl==1.25.1 15:44:45 yq==4.4.0 15:44:45 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins17989760482785874242.sh 15:44:45 ---> uv-install.sh 15:44:45 Installing uv/uvx (latest) using shell installer 15:44:45 2026-10-06 15:44:45 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-aUcs5q.sh" [1] 15:44:45 downloading uv 0.12.23 x86_64-unknown-linux-gnu 15:44:46 installing to /home/jenkins/.local/bin 15:44:46 uv 15:44:46 uvx 15:44:46 everything's installed! 15:44:46 15:44:46 To add $HOME/.local/bin to your PATH, either restart your shell or run: 15:44:46 15:44:46 source $HOME/.local/bin/env (sh, bash, zsh) 15:44:46 source $HOME/.local/bin/env.fish (fish) 15:44:46 Adding install location to PATH 15:44:46 ---> Validating uv/uvx install 15:44:46 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:44:46 [EnvInject] - Injecting environment variables from a build step. 15:44:46 [EnvInject] - Injecting as environment variables the properties content 15:44:46 PYTHON=python3 15:44:46 15:44:46 [EnvInject] - Variables injected successfully. 15:44:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins3928145471400804018.sh 15:44:46 ---> tox-install.sh 15:44:46 + source /home/jenkins/lf-env.sh 15:44:46 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:44:46 ++ mktemp -d /tmp/venv-XXXX 15:44:46 + lf_venv=/tmp/venv-a39U 15:44:46 + local venv_file=/tmp/.os_lf_venv 15:44:46 + local python=python3 15:44:46 + local options 15:44:46 + local set_path=true 15:44:46 + local install_args= 15:44:46 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:44:46 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:44:46 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:44:46 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:44:46 + true 15:44:46 + case $1 in 15:44:46 + venv_file=/tmp/.toxenv 15:44:46 + shift 2 15:44:46 + true 15:44:46 + case $1 in 15:44:46 + shift 15:44:46 + break 15:44:46 + case $python in 15:44:46 + local pkg_list= 15:44:46 + [[ -d /opt/pyenv ]] 15:44:46 + echo 'Setup pyenv:' 15:44:46 Setup pyenv: 15:44:46 + export PYENV_ROOT=/opt/pyenv 15:44:46 + PYENV_ROOT=/opt/pyenv 15:44:46 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:46 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:46 + pyenv versions 15:44:46 system 15:44:46 3.8.20 15:44:46 3.9.20 15:44:46 3.10.15 15:44:46 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:44:46 + command -v pyenv 15:44:46 ++ pyenv init - --no-rehash 15:44:46 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:44:46 for i in ${!paths[@]}; do 15:44:46 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:44:46 fi; done; 15:44:46 echo "${paths[*]}"'\'')" 15:44:46 export PATH="/opt/pyenv/shims:${PATH}" 15:44:46 export PYENV_SHELL=bash 15:44:46 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:44:46 pyenv() { 15:44:46 local command 15:44:46 command="${1:-}" 15:44:46 if [ "$#" -gt 0 ]; then 15:44:46 shift 15:44:46 fi 15:44:46 15:44:46 case "$command" in 15:44:46 rehash|shell) 15:44:46 eval "$(pyenv "sh-$command" "$@")" 15:44:46 ;; 15:44:46 *) 15:44:46 command pyenv "$command" "$@" 15:44:46 ;; 15:44:46 esac 15:44:46 }' 15:44:46 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:44:46 for i in ${!paths[@]}; do 15:44:46 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:44:46 fi; done; 15:44:46 echo "${paths[*]}"' 15:44:46 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:46 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:46 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:46 ++ export PYENV_SHELL=bash 15:44:46 ++ PYENV_SHELL=bash 15:44:46 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:44:46 +++ complete -F _pyenv pyenv 15:44:46 ++ lf-pyver python3 15:44:46 ++ local py_version_xy=python3 15:44:46 ++ local py_version_xyz= 15:44:46 ++ pyenv versions 15:44:46 ++ local command 15:44:46 ++ command=versions 15:44:46 ++ '[' 1 -gt 0 ']' 15:44:46 ++ shift 15:44:46 ++ case "$command" in 15:44:46 ++ command pyenv versions 15:44:46 ++ sed 's/^[ *]* //' 15:44:46 ++ grep -E '^[0-9.]*[0-9]$' 15:44:46 ++ awk '{ print $1 }' 15:44:46 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:44:46 +++ grep '^3' /tmp/.pyenv_versions 15:44:46 +++ sort -V 15:44:46 +++ tail -n 1 15:44:46 ++ py_version_xyz=3.11.10 15:44:46 ++ [[ -z 3.11.10 ]] 15:44:46 ++ echo 3.11.10 15:44:46 ++ return 0 15:44:46 + pyenv local 3.11.10 15:44:46 + local command 15:44:46 + command=local 15:44:46 + '[' 2 -gt 0 ']' 15:44:46 + shift 15:44:46 + case "$command" in 15:44:46 + command pyenv local 3.11.10 15:44:46 + for arg in "$@" 15:44:46 + case $arg in 15:44:46 + pkg_list+='tox ' 15:44:46 + for arg in "$@" 15:44:46 + case $arg in 15:44:46 + pkg_list+='virtualenv ' 15:44:46 + for arg in "$@" 15:44:46 + case $arg in 15:44:46 + pkg_list+='urllib3~=1.26.15 ' 15:44:46 + [[ -f /tmp/.toxenv ]] 15:44:46 + [[ ! -f /tmp/.toxenv ]] 15:44:46 + [[ -n '' ]] 15:44:46 + python3 -m venv /tmp/venv-a39U 15:44:50 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-a39U' 15:44:50 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-a39U 15:44:50 + echo /tmp/venv-a39U 15:44:50 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 15:44:50 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 15:44:50 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:44:50 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:44:50 + local 'pip_opts=--upgrade --quiet' 15:44:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:44:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:44:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:44:50 + [[ -n '' ]] 15:44:50 + [[ -n '' ]] 15:44:50 + lf-venv-pip-install /tmp/venv-a39U/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:44:50 + local venv_python=/tmp/venv-a39U/bin/python3 15:44:50 + shift 15:44:50 + local upstream=https://pypi.org/simple 15:44:50 + /tmp/venv-a39U/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:44:54 + return 0 15:44:54 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:44:54 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:44:54 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:44:54 + lf-venv-pip-install /tmp/venv-a39U/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:44:54 + local venv_python=/tmp/venv-a39U/bin/python3 15:44:54 + shift 15:44:54 + local upstream=https://pypi.org/simple 15:44:54 + /tmp/venv-a39U/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:44:57 + return 0 15:44:57 + type python3 15:44:57 + true 15:44:57 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-a39U/bin to PATH' 15:44:57 lf-activate-venv(): INFO: Adding /tmp/venv-a39U/bin to PATH 15:44:57 + PATH=/tmp/venv-a39U/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 + return 0 15:44:57 + python3 --version 15:44:57 Python 3.11.10 15:44:57 + python3 -m pip --version 15:44:57 pip 26.2.1 from /tmp/venv-a39U/lib/python3.11/site-packages/pip (python 3.11) 15:44:57 + python3 -m pip freeze 15:44:57 cachetools==7.2.1 15:44:57 colorama==0.4.6 15:44:57 distlib==0.4.3 15:44:57 filelock==4.0.12 15:44:57 packaging==26.3 15:44:57 platformdirs==4.12.3 15:44:57 pluggy==1.6.0 15:44:57 pyproject-api==1.11.3 15:44:57 python-discovery==1.6.1 15:44:57 tomli_w==1.2.0 15:44:57 tox==4.64.9 15:44:57 typing_extensions==4.16.0 15:44:57 urllib3==1.26.20 15:44:57 virtualenv==21.14.5 15:44:57 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins5428682490842405912.sh 15:44:57 [EnvInject] - Injecting environment variables from a build step. 15:44:57 [EnvInject] - Injecting as environment variables the properties content 15:44:57 PARALLEL=True 15:44:57 15:44:57 [EnvInject] - Variables injected successfully. 15:44:57 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins8054418030218648301.sh 15:44:57 ---> tox-run.sh 15:44:57 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:44:57 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:44:57 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:44:57 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 15:44:57 + source /home/jenkins/lf-env.sh 15:44:57 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:44:57 ++ mktemp -d /tmp/venv-XXXX 15:44:57 + lf_venv=/tmp/venv-cimB 15:44:57 + local venv_file=/tmp/.os_lf_venv 15:44:57 + local python=python3 15:44:57 + local options 15:44:57 + local set_path=true 15:44:57 + local install_args= 15:44:57 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:44:57 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:44:57 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:44:57 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:44:57 + true 15:44:57 + case $1 in 15:44:57 + venv_file=/tmp/.toxenv 15:44:57 + shift 2 15:44:57 + true 15:44:57 + case $1 in 15:44:57 + shift 15:44:57 + break 15:44:57 + case $python in 15:44:57 + local pkg_list= 15:44:57 + [[ -d /opt/pyenv ]] 15:44:57 + echo 'Setup pyenv:' 15:44:57 Setup pyenv: 15:44:57 + export PYENV_ROOT=/opt/pyenv 15:44:57 + PYENV_ROOT=/opt/pyenv 15:44:57 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 + pyenv versions 15:44:57 system 15:44:57 3.8.20 15:44:57 3.9.20 15:44:57 3.10.15 15:44:57 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:44:57 + command -v pyenv 15:44:57 ++ pyenv init - --no-rehash 15:44:57 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:44:57 for i in ${!paths[@]}; do 15:44:57 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:44:57 fi; done; 15:44:57 echo "${paths[*]}"'\'')" 15:44:57 export PATH="/opt/pyenv/shims:${PATH}" 15:44:57 export PYENV_SHELL=bash 15:44:57 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:44:57 pyenv() { 15:44:57 local command 15:44:57 command="${1:-}" 15:44:57 if [ "$#" -gt 0 ]; then 15:44:57 shift 15:44:57 fi 15:44:57 15:44:57 case "$command" in 15:44:57 rehash|shell) 15:44:57 eval "$(pyenv "sh-$command" "$@")" 15:44:57 ;; 15:44:57 *) 15:44:57 command pyenv "$command" "$@" 15:44:57 ;; 15:44:57 esac 15:44:57 }' 15:44:57 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:44:57 for i in ${!paths[@]}; do 15:44:57 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:44:57 fi; done; 15:44:57 echo "${paths[*]}"' 15:44:57 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:57 ++ export PYENV_SHELL=bash 15:44:57 ++ PYENV_SHELL=bash 15:44:57 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:44:57 +++ complete -F _pyenv pyenv 15:44:57 ++ lf-pyver python3 15:44:57 ++ local py_version_xy=python3 15:44:57 ++ local py_version_xyz= 15:44:57 ++ pyenv versions 15:44:57 ++ local command 15:44:57 ++ command=versions 15:44:57 ++ '[' 1 -gt 0 ']' 15:44:57 ++ shift 15:44:57 ++ case "$command" in 15:44:57 ++ command pyenv versions 15:44:57 ++ sed 's/^[ *]* //' 15:44:57 ++ awk '{ print $1 }' 15:44:57 ++ grep -E '^[0-9.]*[0-9]$' 15:44:57 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:44:57 +++ grep '^3' /tmp/.pyenv_versions 15:44:57 +++ sort -V 15:44:57 +++ tail -n 1 15:44:57 ++ py_version_xyz=3.11.10 15:44:57 ++ [[ -z 3.11.10 ]] 15:44:57 ++ echo 3.11.10 15:44:57 ++ return 0 15:44:57 + pyenv local 3.11.10 15:44:57 + local command 15:44:57 + command=local 15:44:57 + '[' 2 -gt 0 ']' 15:44:57 + shift 15:44:57 + case "$command" in 15:44:57 + command pyenv local 3.11.10 15:44:57 + for arg in "$@" 15:44:57 + case $arg in 15:44:57 + pkg_list+='tox ' 15:44:57 + for arg in "$@" 15:44:57 + case $arg in 15:44:57 + pkg_list+='virtualenv ' 15:44:57 + for arg in "$@" 15:44:57 + case $arg in 15:44:57 + pkg_list+='urllib3~=1.26.15 ' 15:44:57 + [[ -f /tmp/.toxenv ]] 15:44:57 ++ cat /tmp/.toxenv 15:44:57 + lf_venv=/tmp/venv-a39U 15:44:57 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-a39U from' file:/tmp/.toxenv 15:44:57 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-a39U from file:/tmp/.toxenv 15:44:57 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:44:57 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:44:57 + local 'pip_opts=--upgrade --quiet' 15:44:57 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:44:57 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:44:57 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:44:57 + [[ -n '' ]] 15:44:57 + [[ -n '' ]] 15:44:57 + lf-venv-pip-install /tmp/venv-a39U/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:44:57 + local venv_python=/tmp/venv-a39U/bin/python3 15:44:57 + shift 15:44:57 + local upstream=https://pypi.org/simple 15:44:57 + /tmp/venv-a39U/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:44:58 + return 0 15:44:58 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:44:58 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:44:58 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:44:58 + lf-venv-pip-install /tmp/venv-a39U/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:44:58 + local venv_python=/tmp/venv-a39U/bin/python3 15:44:58 + shift 15:44:58 + local upstream=https://pypi.org/simple 15:44:58 + /tmp/venv-a39U/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:44:59 + return 0 15:44:59 + type python3 15:44:59 + true 15:44:59 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-a39U/bin to PATH' 15:44:59 lf-activate-venv(): INFO: Adding /tmp/venv-a39U/bin to PATH 15:44:59 + PATH=/tmp/venv-a39U/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:59 + return 0 15:44:59 + [[ -d /opt/pyenv ]] 15:44:59 + echo '---> Setting up pyenv' 15:44:59 ---> Setting up pyenv 15:44:59 + export PYENV_ROOT=/opt/pyenv 15:44:59 + PYENV_ROOT=/opt/pyenv 15:44:59 + export PATH=/opt/pyenv/bin:/tmp/venv-a39U/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:59 + PATH=/opt/pyenv/bin:/tmp/venv-a39U/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:44:59 ++ pwd 15:44:59 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 15:44:59 + export PYTHONPATH 15:44:59 + export TOX_TESTENV_PASSENV=PYTHONPATH 15:44:59 + TOX_TESTENV_PASSENV=PYTHONPATH 15:44:59 + tox --version 15:45:00 4.64.9 from /tmp/venv-a39U/lib/python3.11/site-packages/tox/__init__.py 15:45:00 + PARALLEL=True 15:45:00 + TOX_OPTIONS_LIST= 15:45:00 + [[ -n '' ]] 15:45:00 + case ${PARALLEL,,} in 15:45:00 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 15:45:00 + tox --parallel auto --parallel-live 15:45:00 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 15:45:01 checkbashisms: freeze> python -m pip freeze --all 15:45:01 docs: install_deps> python -I -m pip install -r docs/requirements.txt 15:45:01 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 15:45:01 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:02 checkbashisms: pip==26.2.1,setuptools==84.0.0 15:45:02 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:45:02 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 15:45:02 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 15:45:03 checkbashisms: OK ✔ in 3.1 seconds 15:45:03 pre-commit: install_deps> python -I -m pip install pre-commit 15:45:06 pre-commit: freeze> python -m pip freeze --all 15:45:06 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.0.12,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.12.3,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 15:45:06 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:45:06 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 15:45:06 /usr/bin/cpan 15:45:06 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 15:45:06 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 15:45:07 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 15:45:08 buildcontroller: freeze> python -m pip freeze --all 15:45:09 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:09 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 15:45:09 + update-java-alternatives -l 15:45:09 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 15:45:09 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 15:45:09 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 15:45:09 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 15:45:09 update-alternatives: error: no alternatives for jaotc 15:45:09 update-alternatives: error: no alternatives for rmic 15:45:09 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 15:45:09 java -version 15:45:09 21.0 15:45:09 + JAVA_VER=21.0 15:45:09 + echo 21.0 15:45:09 + javac -version 15:45:09 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 15:45:09 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 15:45:09 + JAVAC_VER=21.0 15:45:09 + echo 21.0 15:45:09 21.0 15:45:09 No java21 or newer available 15:45:09 + [ 21.0 -ge 21 ] 15:45:09 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 15:45:09 + echo No java21 or newer available 15:45:09 + exit 1 15:45:09 buildcontroller: exit 1 (0.62 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2654 15:45:09 buildcontroller: FAIL ✖ in 9.22 seconds 15:45:09 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 15:45:10 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:45:11 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 15:45:11 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 15:45:12 pylint: freeze> python -m pip freeze --all 15:45:12 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 15:45:13 pylint: astroid==4.3.3,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.3,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 15:45:13 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 15:45:13 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 15:45:13 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 15:45:14 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 15:45:14 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 15:45:14 [INFO] Once installed this environment will be reused. 15:45:14 [INFO] This may take a few minutes... 15:45:15 docs: freeze> python -m pip freeze --all 15:45:15 docs-linkcheck: freeze> python -m pip freeze --all 15:45:15 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 15:45:15 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 15:45:16 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 15:45:16 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 15:45:18 docs: OK ✔ in 18.27 seconds 15:45:18 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:19 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:45:19 [INFO] Once installed this environment will be reused. 15:45:19 [INFO] This may take a few minutes... 15:45:21 docs-linkcheck: OK ✔ in 21.02 seconds 15:45:21 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:24 [INFO] Installing environment for https://github.com/hhatto/autopep8. 15:45:24 [INFO] Once installed this environment will be reused. 15:45:24 [INFO] This may take a few minutes... 15:45:24 build_karaf_tests221: freeze> python -m pip freeze --all 15:45:25 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:25 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:45:25 build karaf in karaf221 with ./karaf221.env 15:45:25 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 15:45:25 ./build_karaf_for_tests.sh: 22: mvn: not found 15:45:25 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:45:25 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3323 15:45:25 build_karaf_tests221: FAIL ✖ in 6.53 seconds 15:45:25 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:27 build_karaf_tests71: freeze> python -m pip freeze --all 15:45:28 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:28 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:45:28 build karaf in karaf71 with ./karaf71.env 15:45:28 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 15:45:28 ./build_karaf_for_tests.sh: 22: mvn: not found 15:45:28 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:45:28 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3359 15:45:28 [INFO] Installing environment for https://github.com/perltidy/perltidy. 15:45:28 [INFO] Once installed this environment will be reused. 15:45:28 [INFO] This may take a few minutes... 15:45:28 build_karaf_tests71: FAIL ✖ in 6.57 seconds 15:45:28 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:29 ************* Module 2.2.1.test12_end2end 15:45:29 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 ************* Module common.test_utils 15:45:29 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:29 15:45:29 ----------------------------------- 15:45:29 Your code has been rated at 9.99/10 15:45:29 15:45:31 pylint: exit 1 (18.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=3041 15:45:31 pylint: FAIL ✖ in 21.45 seconds 15:45:31 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:31 build_karaf_tests200: freeze> python -m pip freeze --all 15:45:31 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:31 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:45:31 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 15:45:31 ./build_karaf_for_tests.sh: 22: mvn: not found 15:45:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:45:31 build karaf in karafoc200 with ./karafoc200.env 15:45:31 build_karaf_tests200: exit 127 (0.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3395 15:45:31 build_karaf_tests200: FAIL ✖ in 6.58 seconds 15:45:31 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:34 buildlighty: freeze> python -m pip freeze --all 15:45:34 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:34 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 15:45:34 ./build.sh: 7: mvn: not found 15:45:34 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 15:45:34 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3444 15:45:36 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 15:45:36 [INFO] Once installed this environment will be reused. 15:45:36 [INFO] This may take a few minutes... 15:45:37 buildlighty: FAIL ✖ in 6.71 seconds 15:45:37 sims: freeze> python -m pip freeze --all 15:45:37 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:37 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 15:45:37 Using lighynode version 22.1.0.7 15:45:37 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 15:45:39 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 15:45:39 [INFO] Once installed this environment will be reused. 15:45:39 [INFO] This may take a few minutes... 15:45:44 trim trailing whitespace.................................................Passed 15:45:44 fix end of files.........................................................Passed 15:45:44 check for added large files..............................................Passed 15:45:44 check for merge conflicts................................................Passed 15:45:44 check for case conflicts.................................................Passed 15:45:44 check json...............................................................Passed 15:45:45 mixed line ending........................................................Passed 15:45:45 Tabs remover.............................................................Passed 15:45:45 autopep8.................................................................Passed 15:45:47 perltidy.................................................................Passed 15:45:48 ShellCheck v0.11.0.......................................................Passed 15:45:53 prettier.................................................................Passed 15:45:54 yamllint.................................................................Passed 15:45:54 sims: OK ✔ in 11.36 seconds 15:45:54 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 15:45:54 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 15:45:54 [INFO] Once installed this environment will be reused. 15:45:54 [INFO] This may take a few minutes... 15:46:03 gitlint..................................................................Passed 15:46:22 pre-commit: OK ✔ in 1 minute 0.05 seconds 15:46:22 testsPCE: freeze> python -m pip freeze --all 15:46:22 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 15:46:22 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 15:46:22 pytest -q transportpce_tests/pce/test01_pce.py 15:48:23 EEEEEEEEEEEEEEEEEEEE [100%] 15:48:27 ==================================== ERRORS ==================================== 15:48:27 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 15:48:27 15:48:27 cls = 15:48:27 15:48:27 @classmethod 15:48:27 def setUpClass(cls): 15:48:27 # pylint: disable=bare-except 15:48:27 sample_files_parsed = False 15:48:27 time.sleep(20) 15:48:27 try: 15:48:27 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:27 "..", "..", "sample_configs", "honeynode-topo.json") 15:48:27 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 15:48:27 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 15:48:27 15:48:27 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:27 "..", "..", "sample_configs", "NW-simple-topology.json") 15:48:27 15:48:27 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 15:48:27 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 15:48:27 15:48:27 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:27 "..", "..", "sample_configs", "NW-for-test-5-4.json") 15:48:27 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 15:48:27 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 15:48:27 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:27 "..", "..", "sample_configs", "pce_portmapping_221.json") 15:48:27 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 15:48:27 cls.port_mapping_data = port_mapping.read() 15:48:27 sample_files_parsed = True 15:48:27 except PermissionError as err: 15:48:27 print("Permission Error when trying to read sample files\n", err) 15:48:27 sys.exit(2) 15:48:27 except FileNotFoundError as err: 15:48:27 print("File Not found Error when trying to read sample files\n", err) 15:48:27 sys.exit(2) 15:48:27 except: 15:48:27 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 15:48:27 sys.exit(2) 15:48:27 finally: 15:48:27 if sample_files_parsed: 15:48:27 print("sample files content loaded") 15:48:27 15:48:27 > cls.processes = test_utils.start_tpce() 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 15:48:27 transportpce_tests/pce/test01_pce.py:93: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 def start_tpce(): 15:48:27 if 'NO_ODL_STARTUP' in os.environ: 15:48:27 print('No OpenDaylight instance to start!') 15:48:27 return [] 15:48:27 print('starting OpenDaylight...') 15:48:27 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:48:27 process = start_lighty() 15:48:27 else: 15:48:27 process = start_karaf() 15:48:27 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:48:27 print('OpenDaylight started !') 15:48:27 else: 15:48:27 print('OpenDaylight failed to start !') 15:48:27 shutdown_process(process) 15:48:27 for pid in process_list: 15:48:27 shutdown_process(pid) 15:48:27 > sys.exit(1) 15:48:27 E SystemExit: 1 15:48:27 15:48:27 transportpce_tests/common/test_utils.py:234: SystemExit 15:48:27 ---------------------------- Captured stdout setup ----------------------------- 15:48:27 sample files content loaded 15:48:27 starting OpenDaylight... 15:48:27 starting KARAF (karaf) TransportPCE build... 15:48:27 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:48:27 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18e660> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18fc40> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18f420> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a705d4040> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18f1a0> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18fc40> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6dba9da0> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e177ce0> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e177a60> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e177ce0> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6dba9940> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18f1a0> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e177a60> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6dbaa980> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e177a60> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18c400> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6dbaa2a0> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18c400> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 15:48:27 15:48:27 cls = 15:48:27 func = . at 0x7f1a6e18c180> 15:48:27 when = 'setup' 15:48:27 reraise = (, ) 15:48:27 15:48:27 @classmethod 15:48:27 def from_call( 15:48:27 cls, 15:48:27 func: Callable[[], TResult], 15:48:27 when: Literal["collect", "setup", "call", "teardown"], 15:48:27 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:27 ) -> CallInfo[TResult]: 15:48:27 """Call func, wrapping the result in a CallInfo. 15:48:27 15:48:27 :param func: 15:48:27 The function to call. Called without arguments. 15:48:27 :type func: Callable[[], _pytest.runner.TResult] 15:48:27 :param when: 15:48:27 The phase in which the function is called. 15:48:27 :param reraise: 15:48:27 Exception or exceptions that shall propagate if raised by the 15:48:27 function, instead of being wrapped in the CallInfo. 15:48:27 """ 15:48:27 excinfo = None 15:48:27 instant = timing.Instant() 15:48:27 try: 15:48:27 > result: TResult | None = func() 15:48:27 ^^^^^^ 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:27 lambda: runtest_hook(item=item, **kwds), 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:27 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:27 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:27 yield 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:27 return (yield) 15:48:27 ^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:27 item.session._setupstate.setup(item) 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:27 col.setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:27 super().setup() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:27 self._request._fillfixtures() 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:27 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:27 fixturedef = self._get_active_fixturedef(argname) 15:48:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:27 fixturedef.execute(request=subrequest) 15:48:27 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:27 15:48:27 self = 15:48:27 request = > 15:48:27 15:48:27 def execute(self, request: SubRequest) -> FixtureValue: 15:48:27 """Return the value of this fixture, executing it if not cached.""" 15:48:27 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:27 # This needs to be done before checking if we have a cached value, since 15:48:27 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:27 # parametrization, they finalize themselves and fixtures depending on it 15:48:27 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:27 # See #4871 15:48:27 requested_fixtures_that_should_finalize_us = [] 15:48:27 for argname in self.argnames: 15:48:27 fixturedef = request._get_active_fixturedef(argname) 15:48:27 # Saves requested fixtures in a list so we later can add our finalizer 15:48:27 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:27 # down first. This is generally handled by SetupState, but still currently 15:48:27 # needed when this fixture is not parametrized but depends on a parametrized 15:48:27 # fixture. 15:48:27 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:27 15:48:27 # Check for (and return) cached value/exception. 15:48:27 if self.cached_result is not None: 15:48:27 request_cache_key = self.cache_key(request) 15:48:27 cache_key = self.cached_result[1] 15:48:27 try: 15:48:27 # Attempt to make a normal == check: this might fail for objects 15:48:27 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:27 cache_hit = bool(request_cache_key == cache_key) 15:48:27 except (ValueError, RuntimeError): 15:48:27 # If the comparison raises, use 'is' as fallback. 15:48:27 cache_hit = request_cache_key is cache_key 15:48:27 15:48:27 if cache_hit: 15:48:27 if self.cached_result[2] is not None: 15:48:27 exc, exc_tb = self.cached_result[2] 15:48:27 raise exc.with_traceback(exc_tb) 15:48:27 else: 15:48:27 return self.cached_result[0] 15:48:27 # We have a previous but differently parametrized fixture instance 15:48:27 # so we need to tear it down before creating a new one. 15:48:27 self.finish(request) 15:48:27 assert self.cached_result is None 15:48:27 15:48:27 # Add finalizer to requested fixtures we saved previously. 15:48:27 # We make sure to do this after checking for cached value to avoid 15:48:27 # adding our finalizer multiple times. (#12135) 15:48:27 finalizer = functools.partial(self.finish, request=request) 15:48:27 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:27 parent_fixture.addfinalizer(finalizer) 15:48:27 15:48:27 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:27 # which is executed last. 15:48:27 > assert not self._finalizers 15:48:27 ^^^^^^^^^^^^^^^^^^^^ 15:48:27 E AssertionError 15:48:27 15:48:27 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:27 =========================== short test summary info ============================ 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 15:48:27 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 15:48:27 20 errors in 124.28s (0:02:04) 15:48:27 testsPCE: exit 1 (124.59 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4169 15:48:27 testsPCE: FAIL ✖ in 2 minutes 55.68 seconds 15:48:27 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:48:34 tests_tapi: freeze> python -m pip freeze --all 15:48:34 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:48:34 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 15:48:34 using environment variables from ./karaf221.env 15:48:34 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 15:50:15 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:50:24 ==================================== ERRORS ==================================== 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 15:50:24 15:50:24 cls = 15:50:24 15:50:24 @classmethod 15:50:24 def setUpClass(cls): 15:50:24 cls.init_failed = False 15:50:24 os.environ['JAVA_MIN_MEM'] = '1024M' 15:50:24 os.environ['JAVA_MAX_MEM'] = '4096M' 15:50:24 > cls.processes = test_utils.start_tpce() 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 15:50:24 transportpce_tests/tapi/test01_abstracted_topology.py:148: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 def start_tpce(): 15:50:24 if 'NO_ODL_STARTUP' in os.environ: 15:50:24 print('No OpenDaylight instance to start!') 15:50:24 return [] 15:50:24 print('starting OpenDaylight...') 15:50:24 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:50:24 process = start_lighty() 15:50:24 else: 15:50:24 process = start_karaf() 15:50:24 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:50:24 print('OpenDaylight started !') 15:50:24 else: 15:50:24 print('OpenDaylight failed to start !') 15:50:24 shutdown_process(process) 15:50:24 for pid in process_list: 15:50:24 shutdown_process(pid) 15:50:24 > sys.exit(1) 15:50:24 E SystemExit: 1 15:50:24 15:50:24 transportpce_tests/common/test_utils.py:234: SystemExit 15:50:24 ---------------------------- Captured stdout setup ----------------------------- 15:50:24 starting OpenDaylight... 15:50:24 starting KARAF (karaf221) TransportPCE build... 15:50:24 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f979c0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6fefc40> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b9687060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b88f7060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6fef100> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f97880> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6fef6a0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b9687060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f960c0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b9687060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6020> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b9687060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f963e0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd65c0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f95e40> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6fef100> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f95e40> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b9687060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b9687060> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd5bc0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd5bc0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd4d60> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd47c0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6ac0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd5300> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6ac0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd5a80> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6fc0> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd5e40> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6020> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6340> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6f96660> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:24 if self.cached_result is not None: 15:50:24 request_cache_key = self.cache_key(request) 15:50:24 cache_key = self.cached_result[1] 15:50:24 try: 15:50:24 # Attempt to make a normal == check: this might fail for objects 15:50:24 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:24 cache_hit = bool(request_cache_key == cache_key) 15:50:24 except (ValueError, RuntimeError): 15:50:24 # If the comparison raises, use 'is' as fallback. 15:50:24 cache_hit = request_cache_key is cache_key 15:50:24 15:50:24 if cache_hit: 15:50:24 if self.cached_result[2] is not None: 15:50:24 exc, exc_tb = self.cached_result[2] 15:50:24 raise exc.with_traceback(exc_tb) 15:50:24 else: 15:50:24 return self.cached_result[0] 15:50:24 # We have a previous but differently parametrized fixture instance 15:50:24 # so we need to tear it down before creating a new one. 15:50:24 self.finish(request) 15:50:24 assert self.cached_result is None 15:50:24 15:50:24 # Add finalizer to requested fixtures we saved previously. 15:50:24 # We make sure to do this after checking for cached value to avoid 15:50:24 # adding our finalizer multiple times. (#12135) 15:50:24 finalizer = functools.partial(self.finish, request=request) 15:50:24 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:24 parent_fixture.addfinalizer(finalizer) 15:50:24 15:50:24 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:24 # which is executed last. 15:50:24 > assert not self._finalizers 15:50:24 ^^^^^^^^^^^^^^^^^^^^ 15:50:24 E AssertionError 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:24 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 15:50:24 15:50:24 cls = 15:50:24 func = . at 0x7f04b6bd6340> 15:50:24 when = 'setup' 15:50:24 reraise = (, ) 15:50:24 15:50:24 @classmethod 15:50:24 def from_call( 15:50:24 cls, 15:50:24 func: Callable[[], TResult], 15:50:24 when: Literal["collect", "setup", "call", "teardown"], 15:50:24 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:24 ) -> CallInfo[TResult]: 15:50:24 """Call func, wrapping the result in a CallInfo. 15:50:24 15:50:24 :param func: 15:50:24 The function to call. Called without arguments. 15:50:24 :type func: Callable[[], _pytest.runner.TResult] 15:50:24 :param when: 15:50:24 The phase in which the function is called. 15:50:24 :param reraise: 15:50:24 Exception or exceptions that shall propagate if raised by the 15:50:24 function, instead of being wrapped in the CallInfo. 15:50:24 """ 15:50:24 excinfo = None 15:50:24 instant = timing.Instant() 15:50:24 try: 15:50:24 > result: TResult | None = func() 15:50:24 ^^^^^^ 15:50:24 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:24 lambda: runtest_hook(item=item, **kwds), 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:24 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:24 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:24 yield 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:24 return (yield) 15:50:24 ^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:24 item.session._setupstate.setup(item) 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:24 col.setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:24 super().setup() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:24 self._request._fillfixtures() 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:24 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:24 fixturedef = self._get_active_fixturedef(argname) 15:50:24 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:24 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:24 fixturedef.execute(request=subrequest) 15:50:24 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:24 15:50:24 self = 15:50:24 request = > 15:50:24 15:50:24 def execute(self, request: SubRequest) -> FixtureValue: 15:50:24 """Return the value of this fixture, executing it if not cached.""" 15:50:24 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:24 # This needs to be done before checking if we have a cached value, since 15:50:24 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:24 # parametrization, they finalize themselves and fixtures depending on it 15:50:24 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:24 # See #4871 15:50:24 requested_fixtures_that_should_finalize_us = [] 15:50:24 for argname in self.argnames: 15:50:24 fixturedef = request._get_active_fixturedef(argname) 15:50:24 # Saves requested fixtures in a list so we later can add our finalizer 15:50:24 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:24 # down first. This is generally handled by SetupState, but still currently 15:50:24 # needed when this fixture is not parametrized but depends on a parametrized 15:50:24 # fixture. 15:50:24 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:24 15:50:24 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6bd7240> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6f96660> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6bd7420> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6bd7560> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6f96660> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6bd63e0> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6bd5a80> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6f96660> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 15:50:25 15:50:25 cls = 15:50:25 func = . at 0x7f04b6bd7060> 15:50:25 when = 'setup' 15:50:25 reraise = (, ) 15:50:25 15:50:25 @classmethod 15:50:25 def from_call( 15:50:25 cls, 15:50:25 func: Callable[[], TResult], 15:50:25 when: Literal["collect", "setup", "call", "teardown"], 15:50:25 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:25 ) -> CallInfo[TResult]: 15:50:25 """Call func, wrapping the result in a CallInfo. 15:50:25 15:50:25 :param func: 15:50:25 The function to call. Called without arguments. 15:50:25 :type func: Callable[[], _pytest.runner.TResult] 15:50:25 :param when: 15:50:25 The phase in which the function is called. 15:50:25 :param reraise: 15:50:25 Exception or exceptions that shall propagate if raised by the 15:50:25 function, instead of being wrapped in the CallInfo. 15:50:25 """ 15:50:25 excinfo = None 15:50:25 instant = timing.Instant() 15:50:25 try: 15:50:25 > result: TResult | None = func() 15:50:25 ^^^^^^ 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:25 lambda: runtest_hook(item=item, **kwds), 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:25 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:25 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:25 yield 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:25 return (yield) 15:50:25 ^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:25 item.session._setupstate.setup(item) 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:25 col.setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:25 super().setup() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:25 self._request._fillfixtures() 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:25 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:25 fixturedef = self._get_active_fixturedef(argname) 15:50:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:25 fixturedef.execute(request=subrequest) 15:50:25 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:25 15:50:25 self = 15:50:25 request = > 15:50:25 15:50:25 def execute(self, request: SubRequest) -> FixtureValue: 15:50:25 """Return the value of this fixture, executing it if not cached.""" 15:50:25 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:25 # This needs to be done before checking if we have a cached value, since 15:50:25 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:25 # parametrization, they finalize themselves and fixtures depending on it 15:50:25 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:25 # See #4871 15:50:25 requested_fixtures_that_should_finalize_us = [] 15:50:25 for argname in self.argnames: 15:50:25 fixturedef = request._get_active_fixturedef(argname) 15:50:25 # Saves requested fixtures in a list so we later can add our finalizer 15:50:25 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:25 # down first. This is generally handled by SetupState, but still currently 15:50:25 # needed when this fixture is not parametrized but depends on a parametrized 15:50:25 # fixture. 15:50:25 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:25 15:50:25 # Check for (and return) cached value/exception. 15:50:25 if self.cached_result is not None: 15:50:25 request_cache_key = self.cache_key(request) 15:50:25 cache_key = self.cached_result[1] 15:50:25 try: 15:50:25 # Attempt to make a normal == check: this might fail for objects 15:50:25 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:25 cache_hit = bool(request_cache_key == cache_key) 15:50:25 except (ValueError, RuntimeError): 15:50:25 # If the comparison raises, use 'is' as fallback. 15:50:25 cache_hit = request_cache_key is cache_key 15:50:25 15:50:25 if cache_hit: 15:50:25 if self.cached_result[2] is not None: 15:50:25 exc, exc_tb = self.cached_result[2] 15:50:25 raise exc.with_traceback(exc_tb) 15:50:25 else: 15:50:25 return self.cached_result[0] 15:50:25 # We have a previous but differently parametrized fixture instance 15:50:25 # so we need to tear it down before creating a new one. 15:50:25 self.finish(request) 15:50:25 assert self.cached_result is None 15:50:25 15:50:25 # Add finalizer to requested fixtures we saved previously. 15:50:25 # We make sure to do this after checking for cached value to avoid 15:50:25 # adding our finalizer multiple times. (#12135) 15:50:25 finalizer = functools.partial(self.finish, request=request) 15:50:25 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:25 parent_fixture.addfinalizer(finalizer) 15:50:25 15:50:25 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:25 # which is executed last. 15:50:25 > assert not self._finalizers 15:50:25 ^^^^^^^^^^^^^^^^^^^^ 15:50:25 E AssertionError 15:50:25 15:50:25 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:25 =========================== short test summary info ============================ 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 15:50:25 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 15:50:25 51 errors in 109.80s (0:01:49) 15:50:25 tests_tapi: exit 1 (110.09 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4546 15:50:25 tests_tapi: FAIL ✖ in 1 minute 57.59 seconds 15:50:25 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:50:25 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:50:32 tests200: freeze> python -m pip freeze --all 15:50:32 tests221: freeze> python -m pip freeze --all 15:50:32 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:50:32 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 15:50:32 using environment variables from ./karafoc200.env 15:50:32 pytest -q transportpce_tests/oc200/test01_portmapping.py 15:50:32 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:50:32 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 15:50:32 using environment variables from ./karaf221.env 15:50:32 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 15:52:12 EEEEEEEEEEEEEEEEEEE [100%] 15:52:14 ==================================== ERRORS ==================================== 15:52:14 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 15:52:14 15:52:14 cls = 15:52:14 15:52:14 @classmethod 15:52:14 def setUpClass(cls): 15:52:14 > cls.processes = test_utils.start_tpce() 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 15:52:14 transportpce_tests/oc200/test01_portmapping.py:29: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 def start_tpce(): 15:52:14 if 'NO_ODL_STARTUP' in os.environ: 15:52:14 print('No OpenDaylight instance to start!') 15:52:14 return [] 15:52:14 print('starting OpenDaylight...') 15:52:14 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:52:14 process = start_lighty() 15:52:14 else: 15:52:14 process = start_karaf() 15:52:14 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:52:14 print('OpenDaylight started !') 15:52:14 else: 15:52:14 print('OpenDaylight failed to start !') 15:52:14 shutdown_process(process) 15:52:14 for pid in process_list: 15:52:14 shutdown_process(pid) 15:52:14 > sys.exit(1) 15:52:14 E SystemExit: 1 15:52:14 15:52:14 transportpce_tests/common/test_utils.py:234: SystemExit 15:52:14 ---------------------------- Captured stdout setup ----------------------------- 15:52:14 starting OpenDaylight... 15:52:14 starting KARAF (karafoc200) TransportPCE build... 15:52:14 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa3483bb420> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa345cc7ec0> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa34746f600> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa345ca3740> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa3483bb420> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa34746f600> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa345cc7880> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa345cc76a0> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:52:14 15:52:14 cls = 15:52:14 func = . at 0x7fa345cc7600> 15:52:14 when = 'setup' 15:52:14 reraise = (, ) 15:52:14 15:52:14 @classmethod 15:52:14 def from_call( 15:52:14 cls, 15:52:14 func: Callable[[], TResult], 15:52:14 when: Literal["collect", "setup", "call", "teardown"], 15:52:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:14 ) -> CallInfo[TResult]: 15:52:14 """Call func, wrapping the result in a CallInfo. 15:52:14 15:52:14 :param func: 15:52:14 The function to call. Called without arguments. 15:52:14 :type func: Callable[[], _pytest.runner.TResult] 15:52:14 :param when: 15:52:14 The phase in which the function is called. 15:52:14 :param reraise: 15:52:14 Exception or exceptions that shall propagate if raised by the 15:52:14 function, instead of being wrapped in the CallInfo. 15:52:14 """ 15:52:14 excinfo = None 15:52:14 instant = timing.Instant() 15:52:14 try: 15:52:14 > result: TResult | None = func() 15:52:14 ^^^^^^ 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:14 lambda: runtest_hook(item=item, **kwds), 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:14 yield 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:14 return (yield) 15:52:14 ^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:14 item.session._setupstate.setup(item) 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:14 col.setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:14 super().setup() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:14 self._request._fillfixtures() 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:14 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:14 fixturedef = self._get_active_fixturedef(argname) 15:52:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:14 fixturedef.execute(request=subrequest) 15:52:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:14 15:52:14 self = 15:52:14 request = > 15:52:14 15:52:14 def execute(self, request: SubRequest) -> FixtureValue: 15:52:14 """Return the value of this fixture, executing it if not cached.""" 15:52:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:14 # This needs to be done before checking if we have a cached value, since 15:52:14 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:14 # parametrization, they finalize themselves and fixtures depending on it 15:52:14 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:14 # See #4871 15:52:14 requested_fixtures_that_should_finalize_us = [] 15:52:14 for argname in self.argnames: 15:52:14 fixturedef = request._get_active_fixturedef(argname) 15:52:14 # Saves requested fixtures in a list so we later can add our finalizer 15:52:14 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:14 # down first. This is generally handled by SetupState, but still currently 15:52:14 # needed when this fixture is not parametrized but depends on a parametrized 15:52:14 # fixture. 15:52:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:14 15:52:14 # Check for (and return) cached value/exception. 15:52:14 if self.cached_result is not None: 15:52:14 request_cache_key = self.cache_key(request) 15:52:14 cache_key = self.cached_result[1] 15:52:14 try: 15:52:14 # Attempt to make a normal == check: this might fail for objects 15:52:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:14 cache_hit = bool(request_cache_key == cache_key) 15:52:14 except (ValueError, RuntimeError): 15:52:14 # If the comparison raises, use 'is' as fallback. 15:52:14 cache_hit = request_cache_key is cache_key 15:52:14 15:52:14 if cache_hit: 15:52:14 if self.cached_result[2] is not None: 15:52:14 exc, exc_tb = self.cached_result[2] 15:52:14 raise exc.with_traceback(exc_tb) 15:52:14 else: 15:52:14 return self.cached_result[0] 15:52:14 # We have a previous but differently parametrized fixture instance 15:52:14 # so we need to tear it down before creating a new one. 15:52:14 self.finish(request) 15:52:14 assert self.cached_result is None 15:52:14 15:52:14 # Add finalizer to requested fixtures we saved previously. 15:52:14 # We make sure to do this after checking for cached value to avoid 15:52:14 # adding our finalizer multiple times. (#12135) 15:52:14 finalizer = functools.partial(self.finish, request=request) 15:52:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:14 parent_fixture.addfinalizer(finalizer) 15:52:14 15:52:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:14 # which is executed last. 15:52:14 > assert not self._finalizers 15:52:14 ^^^^^^^^^^^^^^^^^^^^ 15:52:14 E AssertionError 15:52:14 15:52:14 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:14 =========================== short test summary info ============================ 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 15:52:14 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:52:14 10 errors in 101.90s (0:01:41) 15:52:14 tests200: exit 1 (102.15 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4693 15:52:14 Etests200: FAIL ✖ in 1 minute 49.4 seconds 15:52:14 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:52:14 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:52:18 ==================================== ERRORS ==================================== 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 15:52:18 15:52:18 cls = 15:52:18 15:52:18 @classmethod 15:52:18 def setUpClass(cls): 15:52:18 > cls.processes = test_utils.start_tpce() 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 15:52:18 transportpce_tests/2.2.1/test01_portmapping.py:33: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 def start_tpce(): 15:52:18 if 'NO_ODL_STARTUP' in os.environ: 15:52:18 print('No OpenDaylight instance to start!') 15:52:18 return [] 15:52:18 print('starting OpenDaylight...') 15:52:18 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:52:18 process = start_lighty() 15:52:18 else: 15:52:18 process = start_karaf() 15:52:18 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:52:18 print('OpenDaylight started !') 15:52:18 else: 15:52:18 print('OpenDaylight failed to start !') 15:52:18 shutdown_process(process) 15:52:18 for pid in process_list: 15:52:18 shutdown_process(pid) 15:52:18 > sys.exit(1) 15:52:18 E SystemExit: 1 15:52:18 15:52:18 transportpce_tests/common/test_utils.py:234: SystemExit 15:52:18 ---------------------------- Captured stdout setup ----------------------------- 15:52:18 starting OpenDaylight... 15:52:18 starting KARAF (karaf221) TransportPCE build... 15:52:18 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:52:18 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b2700> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f2d40> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0867bc7240> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0866ddb060> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b2200> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0867bc7240> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f3ba0> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f3240> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0867bc7240> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f37e0> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f3ce0> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f3240> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f2e80> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0867bc7240> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f2520> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f1b20> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f3ba0> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f2d40> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b13a0> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f3d80> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f1b20> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b1120> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b1300> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f1b20> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0865568180> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b1120> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654f1b20> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08655684a0> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b1120> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0865569800> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0865569440> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b1120> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f0865569580> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 15:52:18 15:52:18 cls = 15:52:18 func = . at 0x7f08654b1120> 15:52:18 when = 'setup' 15:52:18 reraise = (, ) 15:52:18 15:52:18 @classmethod 15:52:18 def from_call( 15:52:18 cls, 15:52:18 func: Callable[[], TResult], 15:52:18 when: Literal["collect", "setup", "call", "teardown"], 15:52:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:18 ) -> CallInfo[TResult]: 15:52:18 """Call func, wrapping the result in a CallInfo. 15:52:18 15:52:18 :param func: 15:52:18 The function to call. Called without arguments. 15:52:18 :type func: Callable[[], _pytest.runner.TResult] 15:52:18 :param when: 15:52:18 The phase in which the function is called. 15:52:18 :param reraise: 15:52:18 Exception or exceptions that shall propagate if raised by the 15:52:18 function, instead of being wrapped in the CallInfo. 15:52:18 """ 15:52:18 excinfo = None 15:52:18 instant = timing.Instant() 15:52:18 try: 15:52:18 > result: TResult | None = func() 15:52:18 ^^^^^^ 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:18 lambda: runtest_hook(item=item, **kwds), 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:18 yield 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:18 return (yield) 15:52:18 ^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:18 item.session._setupstate.setup(item) 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:18 col.setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:18 super().setup() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:18 self._request._fillfixtures() 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:18 fixturedef = self._get_active_fixturedef(argname) 15:52:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:18 fixturedef.execute(request=subrequest) 15:52:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:18 15:52:18 self = 15:52:18 request = > 15:52:18 15:52:18 def execute(self, request: SubRequest) -> FixtureValue: 15:52:18 """Return the value of this fixture, executing it if not cached.""" 15:52:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:18 # This needs to be done before checking if we have a cached value, since 15:52:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:18 # parametrization, they finalize themselves and fixtures depending on it 15:52:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:18 # See #4871 15:52:18 requested_fixtures_that_should_finalize_us = [] 15:52:18 for argname in self.argnames: 15:52:18 fixturedef = request._get_active_fixturedef(argname) 15:52:18 # Saves requested fixtures in a list so we later can add our finalizer 15:52:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:18 # down first. This is generally handled by SetupState, but still currently 15:52:18 # needed when this fixture is not parametrized but depends on a parametrized 15:52:18 # fixture. 15:52:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:18 15:52:18 # Check for (and return) cached value/exception. 15:52:18 if self.cached_result is not None: 15:52:18 request_cache_key = self.cache_key(request) 15:52:18 cache_key = self.cached_result[1] 15:52:18 try: 15:52:18 # Attempt to make a normal == check: this might fail for objects 15:52:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:18 cache_hit = bool(request_cache_key == cache_key) 15:52:18 except (ValueError, RuntimeError): 15:52:18 # If the comparison raises, use 'is' as fallback. 15:52:18 cache_hit = request_cache_key is cache_key 15:52:18 15:52:18 if cache_hit: 15:52:18 if self.cached_result[2] is not None: 15:52:18 exc, exc_tb = self.cached_result[2] 15:52:18 raise exc.with_traceback(exc_tb) 15:52:18 else: 15:52:18 return self.cached_result[0] 15:52:18 # We have a previous but differently parametrized fixture instance 15:52:18 # so we need to tear it down before creating a new one. 15:52:18 self.finish(request) 15:52:18 assert self.cached_result is None 15:52:18 15:52:18 # Add finalizer to requested fixtures we saved previously. 15:52:18 # We make sure to do this after checking for cached value to avoid 15:52:18 # adding our finalizer multiple times. (#12135) 15:52:18 finalizer = functools.partial(self.finish, request=request) 15:52:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:18 parent_fixture.addfinalizer(finalizer) 15:52:18 15:52:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:18 # which is executed last. 15:52:18 > assert not self._finalizers 15:52:18 ^^^^^^^^^^^^^^^^^^^^ 15:52:18 E AssertionError 15:52:18 15:52:18 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:18 =========================== short test summary info ============================ 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 15:52:18 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 15:52:18 35 errors in 106.36s (0:01:46) 15:52:18 tests221: exit 1 (106.64 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4704 15:52:19 tests221: FAIL ✖ in 1 minute 53.9 seconds 15:52:19 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:52:20 tests71: freeze> python -m pip freeze --all 15:52:20 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:52:20 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 15:52:20 using environment variables from ./karaf71.env 15:52:20 pytest -q transportpce_tests/7.1/test01_portmapping.py 15:52:25 tests_hybrid: freeze> python -m pip freeze --all 15:52:25 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:52:25 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 15:52:25 using environment variables from ./karaf221.env 15:52:25 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 15:54:01 EEEEEEEEEEEE [100%] 15:54:03 ==================================== ERRORS ==================================== 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 15:54:03 15:54:03 cls = 15:54:03 15:54:03 @classmethod 15:54:03 def setUpClass(cls): 15:54:03 > cls.processes = test_utils.start_tpce() 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 15:54:03 transportpce_tests/7.1/test01_portmapping.py:32: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 def start_tpce(): 15:54:03 if 'NO_ODL_STARTUP' in os.environ: 15:54:03 print('No OpenDaylight instance to start!') 15:54:03 return [] 15:54:03 print('starting OpenDaylight...') 15:54:03 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:54:03 process = start_lighty() 15:54:03 else: 15:54:03 process = start_karaf() 15:54:03 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:54:03 print('OpenDaylight started !') 15:54:03 else: 15:54:03 print('OpenDaylight failed to start !') 15:54:03 shutdown_process(process) 15:54:03 for pid in process_list: 15:54:03 shutdown_process(pid) 15:54:03 > sys.exit(1) 15:54:03 E SystemExit: 1 15:54:03 15:54:03 transportpce_tests/common/test_utils.py:234: SystemExit 15:54:03 ---------------------------- Captured stdout setup ----------------------------- 15:54:03 starting OpenDaylight... 15:54:03 starting KARAF (karaf71) TransportPCE build... 15:54:03 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3e2a0> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3fa60> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffad014f2e0> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3fa60> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3f7e0> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3f880> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3f6a0> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3c900> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3f6a0> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3f7e0> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 15:54:03 15:54:03 cls = 15:54:03 func = . at 0x7ffacda3c900> 15:54:03 when = 'setup' 15:54:03 reraise = (, ) 15:54:03 15:54:03 @classmethod 15:54:03 def from_call( 15:54:03 cls, 15:54:03 func: Callable[[], TResult], 15:54:03 when: Literal["collect", "setup", "call", "teardown"], 15:54:03 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:03 ) -> CallInfo[TResult]: 15:54:03 """Call func, wrapping the result in a CallInfo. 15:54:03 15:54:03 :param func: 15:54:03 The function to call. Called without arguments. 15:54:03 :type func: Callable[[], _pytest.runner.TResult] 15:54:03 :param when: 15:54:03 The phase in which the function is called. 15:54:03 :param reraise: 15:54:03 Exception or exceptions that shall propagate if raised by the 15:54:03 function, instead of being wrapped in the CallInfo. 15:54:03 """ 15:54:03 excinfo = None 15:54:03 instant = timing.Instant() 15:54:03 try: 15:54:03 > result: TResult | None = func() 15:54:03 ^^^^^^ 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:03 lambda: runtest_hook(item=item, **kwds), 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:03 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:03 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:03 yield 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:03 return (yield) 15:54:03 ^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:03 item.session._setupstate.setup(item) 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:03 col.setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:03 super().setup() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:03 self._request._fillfixtures() 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:03 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:03 fixturedef = self._get_active_fixturedef(argname) 15:54:03 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:03 fixturedef.execute(request=subrequest) 15:54:03 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:03 15:54:03 self = 15:54:03 request = > 15:54:03 15:54:03 def execute(self, request: SubRequest) -> FixtureValue: 15:54:03 """Return the value of this fixture, executing it if not cached.""" 15:54:03 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:03 # This needs to be done before checking if we have a cached value, since 15:54:03 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:03 # parametrization, they finalize themselves and fixtures depending on it 15:54:03 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:03 # See #4871 15:54:03 requested_fixtures_that_should_finalize_us = [] 15:54:03 for argname in self.argnames: 15:54:03 fixturedef = request._get_active_fixturedef(argname) 15:54:03 # Saves requested fixtures in a list so we later can add our finalizer 15:54:03 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:03 # down first. This is generally handled by SetupState, but still currently 15:54:03 # needed when this fixture is not parametrized but depends on a parametrized 15:54:03 # fixture. 15:54:03 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:03 15:54:03 # Check for (and return) cached value/exception. 15:54:03 if self.cached_result is not None: 15:54:03 request_cache_key = self.cache_key(request) 15:54:03 cache_key = self.cached_result[1] 15:54:03 try: 15:54:03 # Attempt to make a normal == check: this might fail for objects 15:54:03 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:03 cache_hit = bool(request_cache_key == cache_key) 15:54:03 except (ValueError, RuntimeError): 15:54:03 # If the comparison raises, use 'is' as fallback. 15:54:03 cache_hit = request_cache_key is cache_key 15:54:03 15:54:03 if cache_hit: 15:54:03 if self.cached_result[2] is not None: 15:54:03 exc, exc_tb = self.cached_result[2] 15:54:03 raise exc.with_traceback(exc_tb) 15:54:03 else: 15:54:03 return self.cached_result[0] 15:54:03 # We have a previous but differently parametrized fixture instance 15:54:03 # so we need to tear it down before creating a new one. 15:54:03 self.finish(request) 15:54:03 assert self.cached_result is None 15:54:03 15:54:03 # Add finalizer to requested fixtures we saved previously. 15:54:03 # We make sure to do this after checking for cached value to avoid 15:54:03 # adding our finalizer multiple times. (#12135) 15:54:03 finalizer = functools.partial(self.finish, request=request) 15:54:03 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:03 parent_fixture.addfinalizer(finalizer) 15:54:03 15:54:03 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:03 # which is executed last. 15:54:03 > assert not self._finalizers 15:54:03 ^^^^^^^^^^^^^^^^^^^^ 15:54:03 E AssertionError 15:54:03 15:54:03 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:03 =========================== short test summary info ============================ 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 15:54:03 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 15:54:03 12 errors in 102.30s (0:01:42) 15:54:03 tests71: exit 1 (102.58 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4830 15:54:05 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:54:15 ==================================== ERRORS ==================================== 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 15:54:15 15:54:15 cls = 15:54:15 15:54:15 @classmethod 15:54:15 def setUpClass(cls): 15:54:15 > cls.processes = test_utils.start_tpce() 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 15:54:15 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 def start_tpce(): 15:54:15 if 'NO_ODL_STARTUP' in os.environ: 15:54:15 print('No OpenDaylight instance to start!') 15:54:15 return [] 15:54:15 print('starting OpenDaylight...') 15:54:15 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:54:15 process = start_lighty() 15:54:15 else: 15:54:15 process = start_karaf() 15:54:15 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:54:15 print('OpenDaylight started !') 15:54:15 else: 15:54:15 print('OpenDaylight failed to start !') 15:54:15 shutdown_process(process) 15:54:15 for pid in process_list: 15:54:15 shutdown_process(pid) 15:54:15 > sys.exit(1) 15:54:15 E SystemExit: 1 15:54:15 15:54:15 transportpce_tests/common/test_utils.py:234: SystemExit 15:54:15 ---------------------------- Captured stdout setup ----------------------------- 15:54:15 starting OpenDaylight... 15:54:15 starting KARAF (karaf221) TransportPCE build... 15:54:15 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443446ca0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe44349be20> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe445b46f20> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443445080> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443444f40> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443446ca0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe445b46f20> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe44349a5c0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe44349a840> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443446ca0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79940> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe44349ab60> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443446ca0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79da0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443445580> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79da0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443445580> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe443445580> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e7a0c0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e7a0c0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79440> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79940> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79a80> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79760> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e78900> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e78e00> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e78900> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e789a0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e79120> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e78fe0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e78fe0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e7aa20> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e791c0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e793a0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e789a0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e7a5c0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe4434459e0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 15:54:15 15:54:15 cls = 15:54:15 func = . at 0x7fe442e7a2a0> 15:54:15 when = 'setup' 15:54:15 reraise = (, ) 15:54:15 15:54:15 @classmethod 15:54:15 def from_call( 15:54:15 cls, 15:54:15 func: Callable[[], TResult], 15:54:15 when: Literal["collect", "setup", "call", "teardown"], 15:54:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:15 ) -> CallInfo[TResult]: 15:54:15 """Call func, wrapping the result in a CallInfo. 15:54:15 15:54:15 :param func: 15:54:15 The function to call. Called without arguments. 15:54:15 :type func: Callable[[], _pytest.runner.TResult] 15:54:15 :param when: 15:54:15 The phase in which the function is called. 15:54:15 :param reraise: 15:54:15 Exception or exceptions that shall propagate if raised by the 15:54:15 function, instead of being wrapped in the CallInfo. 15:54:15 """ 15:54:15 excinfo = None 15:54:15 instant = timing.Instant() 15:54:15 try: 15:54:15 > result: TResult | None = func() 15:54:15 ^^^^^^ 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:15 lambda: runtest_hook(item=item, **kwds), 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:15 yield 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:15 return (yield) 15:54:15 ^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:15 item.session._setupstate.setup(item) 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:15 col.setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:15 super().setup() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:15 self._request._fillfixtures() 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:15 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:15 fixturedef = self._get_active_fixturedef(argname) 15:54:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:15 fixturedef.execute(request=subrequest) 15:54:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:15 15:54:15 self = 15:54:15 request = > 15:54:15 15:54:15 def execute(self, request: SubRequest) -> FixtureValue: 15:54:15 """Return the value of this fixture, executing it if not cached.""" 15:54:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:15 # This needs to be done before checking if we have a cached value, since 15:54:15 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:15 # parametrization, they finalize themselves and fixtures depending on it 15:54:15 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:15 # See #4871 15:54:15 requested_fixtures_that_should_finalize_us = [] 15:54:15 for argname in self.argnames: 15:54:15 fixturedef = request._get_active_fixturedef(argname) 15:54:15 # Saves requested fixtures in a list so we later can add our finalizer 15:54:15 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:15 # down first. This is generally handled by SetupState, but still currently 15:54:15 # needed when this fixture is not parametrized but depends on a parametrized 15:54:15 # fixture. 15:54:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:15 15:54:15 # Check for (and return) cached value/exception. 15:54:15 if self.cached_result is not None: 15:54:15 request_cache_key = self.cache_key(request) 15:54:15 cache_key = self.cached_result[1] 15:54:15 try: 15:54:15 # Attempt to make a normal == check: this might fail for objects 15:54:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:15 cache_hit = bool(request_cache_key == cache_key) 15:54:15 except (ValueError, RuntimeError): 15:54:15 # If the comparison raises, use 'is' as fallback. 15:54:15 cache_hit = request_cache_key is cache_key 15:54:15 15:54:15 if cache_hit: 15:54:15 if self.cached_result[2] is not None: 15:54:15 exc, exc_tb = self.cached_result[2] 15:54:15 raise exc.with_traceback(exc_tb) 15:54:15 else: 15:54:15 return self.cached_result[0] 15:54:15 # We have a previous but differently parametrized fixture instance 15:54:15 # so we need to tear it down before creating a new one. 15:54:15 self.finish(request) 15:54:15 assert self.cached_result is None 15:54:15 15:54:15 # Add finalizer to requested fixtures we saved previously. 15:54:15 # We make sure to do this after checking for cached value to avoid 15:54:15 # adding our finalizer multiple times. (#12135) 15:54:15 finalizer = functools.partial(self.finish, request=request) 15:54:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:15 parent_fixture.addfinalizer(finalizer) 15:54:15 15:54:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:15 # which is executed last. 15:54:15 > assert not self._finalizers 15:54:15 ^^^^^^^^^^^^^^^^^^^^ 15:54:15 E AssertionError 15:54:15 15:54:15 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:15 =========================== short test summary info ============================ 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 15:54:15 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 15:54:15 51 errors in 109.63s (0:01:49) 15:54:15 tests71: FAIL ✖ in 1 minute 48.97 seconds 15:54:15 tests_hybrid: exit 1 (109.92 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4846 15:54:15 buildcontroller: FAIL code 1 (9.22=setup[8.60]+cmd[0.62] seconds) 15:54:15 sims: OK (11.36=setup[6.48]+cmd[4.88] seconds) 15:54:15 testsPCE: FAIL code 1 (175.68=setup[51.09]+cmd[124.59] seconds) 15:54:15 build_karaf_tests221: FAIL code 127 (6.53=setup[6.53]+cmd[0.00] seconds) 15:54:15 tests_tapi: FAIL code 1 (117.59=setup[7.50]+cmd[110.09] seconds) 15:54:15 tests221: FAIL code 1 (113.90=setup[7.26]+cmd[106.64] seconds) 15:54:15 build_karaf_tests71: FAIL code 127 (6.57=setup[6.55]+cmd[0.01] seconds) 15:54:15 tests71: FAIL code 1 (108.97=setup[6.39]+cmd[102.58] seconds) 15:54:15 build_karaf_tests200: FAIL code 127 (6.58=setup[6.56]+cmd[0.02] seconds) 15:54:15 tests200: FAIL code 1 (109.40=setup[7.25]+cmd[102.15] seconds) 15:54:15 tests_hybrid: FAIL code 1 (116.31=setup[6.40]+cmd[109.92] seconds) 15:54:15 buildlighty: FAIL code 9 (6.71=setup[6.71]+cmd[0.01] seconds) 15:54:15 docs: OK (18.27=setup[15.28]+cmd[2.99] seconds) 15:54:15 docs-linkcheck: OK (21.02=setup[15.63]+cmd[5.39] seconds) 15:54:15 checkbashisms: OK (3.10=setup[1.88]+cmd[0.00,0.04,1.18] seconds) 15:54:15 pre-commit: OK (60.05=setup[3.05]+cmd[0.01,0.01,47.95,9.03] seconds) 15:54:15 pylint: FAIL code 1 (21.45=setup[3.45]+cmd[18.00] seconds) 15:54:15 evaluation failed :( (554.91 seconds) 15:54:15 + tox_status=1 15:54:15 + echo '---> Completed tox runs' 15:54:15 ---> Completed tox runs 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/build_karaf_tests200/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=build_karaf_tests200 15:54:15 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/build_karaf_tests221/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=build_karaf_tests221 15:54:15 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/build_karaf_tests71/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=build_karaf_tests71 15:54:15 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/buildcontroller/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=buildcontroller 15:54:15 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/buildlighty/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=buildlighty 15:54:15 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/checkbashisms/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=checkbashisms 15:54:15 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/docs-linkcheck/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=docs-linkcheck 15:54:15 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/docs/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=docs 15:54:15 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/pre-commit/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=pre-commit 15:54:15 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/pylint/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=pylint 15:54:15 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/sims/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=sims 15:54:15 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/tests200/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=tests200 15:54:15 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/tests221/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=tests221 15:54:15 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/tests71/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=tests71 15:54:15 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/testsPCE/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=testsPCE 15:54:15 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/tests_hybrid/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=tests_hybrid 15:54:15 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 15:54:15 + for i in .tox/*/log 15:54:15 ++ echo .tox/tests_tapi/log 15:54:15 ++ awk -F/ '{print $2}' 15:54:15 + tox_env=tests_tapi 15:54:15 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 15:54:15 + DOC_DIR=docs/_build/html 15:54:15 + [[ -d docs/_build/html ]] 15:54:15 + echo '---> Archiving generated docs' 15:54:15 ---> Archiving generated docs 15:54:15 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:54:15 + echo '---> tox-run.sh ends' 15:54:15 ---> tox-run.sh ends 15:54:15 + test 1 -eq 0 15:54:15 + exit 1 15:54:15 ++ '[' 1 = 1 ']' 15:54:15 ++ '[' -x /usr/bin/clear_console ']' 15:54:15 ++ /usr/bin/clear_console -q 15:54:15 Build step 'Execute shell' marked build as failure 15:54:15 $ ssh-agent -k 15:54:15 unset SSH_AUTH_SOCK; 15:54:15 unset SSH_AGENT_PID; 15:54:15 echo Agent pid 1570 killed; 15:54:15 [ssh-agent] Stopped. 15:54:15 [PostBuildScript] - [INFO] Executing post build scripts. 15:54:15 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12248259961053044477.sh 15:54:15 ---> sysstat.sh 15:54:15 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6521323717361622475.sh 15:54:15 ---> package-listing.sh 15:54:15 + '[' -f /etc/os-release ']' 15:54:15 + . /etc/os-release 15:54:15 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 15:54:15 ++ NAME=Ubuntu 15:54:15 ++ VERSION_ID=22.04 15:54:15 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 15:54:15 ++ VERSION_CODENAME=jammy 15:54:15 ++ ID=ubuntu 15:54:15 ++ ID_LIKE=debian 15:54:15 ++ HOME_URL=https://www.ubuntu.com/ 15:54:15 ++ SUPPORT_URL=https://help.ubuntu.com/ 15:54:15 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 15:54:15 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 15:54:15 ++ UBUNTU_CODENAME=jammy 15:54:15 + case " ${ID:-} ${ID_LIKE:-} " in 15:54:15 + OS_FAMILY=debian 15:54:15 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 15:54:15 + START_PACKAGES=/tmp/packages_start.txt 15:54:15 + END_PACKAGES=/tmp/packages_end.txt 15:54:15 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:54:15 + PACKAGES=/tmp/packages_start.txt 15:54:15 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:54:15 + PACKAGES=/tmp/packages_end.txt 15:54:15 + case "${OS_FAMILY}" in 15:54:15 + dpkg -l 15:54:15 + grep '^ii' 15:54:15 + '[' -f /tmp/packages_start.txt ']' 15:54:15 + '[' -f /tmp/packages_end.txt ']' 15:54:15 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:54:15 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:54:15 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:54:15 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:54:15 + exit 0 15:54:15 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4701459403321391385.sh 15:54:15 ---> capture-instance-metadata.sh 15:54:15 Setup pyenv: 15:54:15 system 15:54:15 3.8.20 15:54:15 3.9.20 15:54:15 3.10.15 15:54:15 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:16 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-JG0U from file:/tmp/.os_lf_venv 15:54:16 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:54:18 lf-activate-venv(): INFO: Installing additional packages: lftools 15:54:33 lf-activate-venv(): INFO: Adding /tmp/venv-JG0U/bin to PATH 15:54:33 INFO: Running in OpenStack, capturing instance metadata 15:54:34 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12258090001925611858.sh 15:54:34 provisioning config files... 15:54:34 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6127 15:54:35 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config3179036861778216987tmp 15:54:35 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 15:54:35 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 15:54:35 provisioning config files... 15:54:35 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 15:54:35 [EnvInject] - Injecting environment variables from a build step. 15:54:35 [EnvInject] - Injecting as environment variables the properties content 15:54:35 SERVER_ID=logs 15:54:35 15:54:35 [EnvInject] - Variables injected successfully. 15:54:35 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9117714834966671622.sh 15:54:35 ---> create-netrc.sh 15:54:35 WARN: Log server credential not found. 15:54:35 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12878763512502212019.sh 15:54:35 ---> python-tools-install.sh 15:54:35 Setup pyenv: 15:54:35 system 15:54:35 3.8.20 15:54:35 3.9.20 15:54:35 3.10.15 15:54:35 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:35 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-JG0U from file:/tmp/.os_lf_venv 15:54:35 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:54:37 lf-activate-venv(): INFO: Installing additional packages: lftools 15:54:46 lf-activate-venv(): INFO: Adding /tmp/venv-JG0U/bin to PATH 15:54:46 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins2216357508946358389.sh 15:54:46 ---> uv-install.sh 15:54:46 uv 0.12.23 is already installed 15:54:46 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:54:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7496841425751482616.sh 15:54:46 ---> sudo-logs.sh 15:54:46 Archiving 'sudo' log.. 15:54:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1137217483262109637.sh 15:54:46 ---> job-cost.sh 15:54:46 INFO: Activating Python virtual environment... 15:54:46 Setup pyenv: 15:54:46 system 15:54:46 3.8.20 15:54:46 3.9.20 15:54:46 3.10.15 15:54:46 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:46 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-JG0U from file:/tmp/.os_lf_venv 15:54:46 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:54:48 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 15:54:55 lf-activate-venv(): INFO: Adding /tmp/venv-JG0U/bin to PATH 15:54:55 INFO: No stack-cost file found 15:54:55 INFO: Instance uptime: 735s 15:54:55 INFO: Fetching instance metadata (attempt 1 of 3)... 15:54:55 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 15:54:56 INFO: Successfully fetched instance metadata 15:54:56 INFO: Instance type: v3-standard-4 15:54:56 INFO: Retrieving pricing info for: v3-standard-4 15:54:56 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 15:54:56 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=735 15:54:56 INFO: Successfully fetched Vexxhost pricing API 15:54:56 INFO: Retrieved cost: 0.11 15:54:56 INFO: Retrieved resource: v3-standard-4 15:54:56 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 15:54:56 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 15:54:56 INFO: Successfully archived job cost data 15:54:56 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6127,2026-10-06 15:54:56,v3-standard-4,735,0.11,0.00,FAILURE 15:54:56 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1471729672998293765.sh 15:54:56 ---> logs-deploy.sh 15:54:56 Setup pyenv: 15:54:56 system 15:54:56 3.8.20 15:54:56 3.9.20 15:54:56 3.10.15 15:54:56 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:56 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-JG0U from file:/tmp/.os_lf_venv 15:54:56 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:54:58 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 15:55:07 lf-activate-venv(): INFO: Adding /tmp/venv-JG0U/bin to PATH 15:55:07 WARNING: Nexus logging server not set 15:55:07 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6127/ 15:55:07 INFO: archiving logs to S3 15:55:08 ---> uname -a: 15:55:08 Linux prd-ubuntu2204-docker-4c-16g-62466 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 15:55:08 15:55:08 15:55:08 ---> lscpu: 15:55:08 Architecture: x86_64 15:55:08 CPU op-mode(s): 32-bit, 64-bit 15:55:08 Address sizes: 40 bits physical, 48 bits virtual 15:55:08 Byte Order: Little Endian 15:55:08 CPU(s): 4 15:55:08 On-line CPU(s) list: 0-3 15:55:08 Vendor ID: AuthenticAMD 15:55:08 Model name: AMD EPYC-Rome Processor 15:55:08 CPU family: 23 15:55:08 Model: 49 15:55:08 Thread(s) per core: 1 15:55:08 Core(s) per socket: 1 15:55:08 Socket(s): 4 15:55:08 Stepping: 0 15:55:08 BogoMIPS: 5600.00 15:55:08 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 15:55:08 Virtualization: AMD-V 15:55:08 Hypervisor vendor: KVM 15:55:08 Virtualization type: full 15:55:08 L1d cache: 128 KiB (4 instances) 15:55:08 L1i cache: 128 KiB (4 instances) 15:55:08 L2 cache: 2 MiB (4 instances) 15:55:08 L3 cache: 64 MiB (4 instances) 15:55:08 NUMA node(s): 1 15:55:08 NUMA node0 CPU(s): 0-3 15:55:08 Vulnerability Gather data sampling: Not affected 15:55:08 Vulnerability Indirect target selection: Not affected 15:55:08 Vulnerability Itlb multihit: Not affected 15:55:08 Vulnerability L1tf: Not affected 15:55:08 Vulnerability Mds: Not affected 15:55:08 Vulnerability Meltdown: Not affected 15:55:08 Vulnerability Mmio stale data: Not affected 15:55:08 Vulnerability Reg file data sampling: Not affected 15:55:08 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 15:55:08 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 15:55:08 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 15:55:08 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 15:55:08 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 15:55:08 Vulnerability Srbds: Not affected 15:55:08 Vulnerability Tsa: Not affected 15:55:08 Vulnerability Tsx async abort: Not affected 15:55:08 Vulnerability Vmscape: Not affected 15:55:08 15:55:08 15:55:08 ---> nproc: 15:55:08 4 15:55:08 15:55:08 15:55:08 ---> df -h: 15:55:08 Filesystem Size Used Avail Use% Mounted on 15:55:08 tmpfs 1.6G 1.1M 1.6G 1% /run 15:55:08 /dev/vda1 78G 11G 67G 14% / 15:55:08 tmpfs 7.9G 0 7.9G 0% /dev/shm 15:55:08 tmpfs 5.0M 0 5.0M 0% /run/lock 15:55:08 /dev/vda15 105M 6.1M 99M 6% /boot/efi 15:55:08 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 15:55:08 15:55:08 15:55:08 ---> free -m: 15:55:08 total used free shared buff/cache available 15:55:08 Mem: 15989 699 9776 4 5513 14946 15:55:08 Swap: 1023 0 1023 15:55:08 15:55:08 15:55:08 ---> ip addr: 15:55:08 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 15:55:08 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 15:55:08 inet 127.0.0.1/8 scope host lo 15:55:08 valid_lft forever preferred_lft forever 15:55:08 inet6 ::1/128 scope host 15:55:08 valid_lft forever preferred_lft forever 15:55:08 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 15:55:08 link/ether fa:16:3e:3a:29:43 brd ff:ff:ff:ff:ff:ff 15:55:08 altname enp0s3 15:55:08 inet 10.30.170.8/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 15:55:08 valid_lft 85661sec preferred_lft 85661sec 15:55:08 inet6 fe80::f816:3eff:fe3a:2943/64 scope link 15:55:08 valid_lft forever preferred_lft forever 15:55:08 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 15:55:08 link/ether c6:10:b7:37:c5:3d brd ff:ff:ff:ff:ff:ff 15:55:08 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 15:55:08 valid_lft forever preferred_lft forever 15:55:08 inet6 fe80::c410:b7ff:fe37:c53d/64 scope link 15:55:08 valid_lft forever preferred_lft forever 15:55:08 15:55:08 15:55:08 ---> sar -b -r -n DEV: 15:55:08 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62466) 10/06/26 _x86_64_ (4 CPU) 15:55:08 15:55:08 15:42:52 LINUX RESTART (4 CPU) 15:55:08 15:55:08 15:55:08 ---> sar -P ALL: 15:55:08 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62466) 10/06/26 _x86_64_ (4 CPU) 15:55:08 15:55:08 15:42:52 LINUX RESTART (4 CPU) 15:55:08 15:55:08 15:55:08