15:44:50 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126688 15:44:50 Running as SYSTEM 15:44:50 [EnvInject] - Loading node environment variables. 15:44:50 Building remotely on prd-ubuntu2204-docker-4c-16g-62476 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 15:44:51 [ssh-agent] Looking for ssh-agent implementation... 15:44:51 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:44:51 $ ssh-agent 15:44:51 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXOXorMo/agent.1570 15:44:51 SSH_AGENT_PID=1572 15:44:51 [ssh-agent] Started. 15:44:51 Running ssh-add (command line suppressed) 15:44:51 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_11384877669273786127.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_11384877669273786127.key) 15:44:51 [ssh-agent] Using credentials jenkins (jenkins-ssh) 15:44:51 The recommended git tool is: NONE 15:44:55 using credential jenkins-ssh 15:44:55 Wiping out workspace first. 15:44:55 Cloning the remote Git repository 15:44:55 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 15:44:55 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 15:44:55 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:55 > git --version # timeout=10 15:44:55 > git --version # 'git version 2.34.1' 15:44:55 using GIT_SSH to set credentials jenkins-ssh 15:44:55 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:55 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:59 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:59 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:59 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:59 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:59 using GIT_SSH to set credentials jenkins-ssh 15:44:59 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:59 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/88/126688/1 # timeout=10 15:45:00 > git rev-parse 74450f51386fd7fd66fe1472371adcd21acce6d7^{commit} # timeout=10 15:45:00 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 15:45:00 Checking out Revision 74450f51386fd7fd66fe1472371adcd21acce6d7 (refs/changes/88/126688/1) 15:45:00 > git config core.sparsecheckout # timeout=10 15:45:00 > git checkout -f 74450f51386fd7fd66fe1472371adcd21acce6d7 # timeout=10 15:45:00 Commit message: "Fix service-handler code style violations" 15:45:00 > git rev-parse FETCH_HEAD^{commit} # timeout=10 15:45:00 > git rev-list --no-walk 97c7aec16e0c980221bb1591525b16d98cd6ae0e # timeout=10 15:45:00 > git remote # timeout=10 15:45:00 > git submodule init # timeout=10 15:45:00 > git submodule sync # timeout=10 15:45:00 > git config --get remote.origin.url # timeout=10 15:45:00 > git submodule init # timeout=10 15:45:00 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 15:45:00 ERROR: No submodules found. 15:45:04 provisioning config files... 15:45:04 copy managed file [npmrc] to file:/home/jenkins/.npmrc 15:45:04 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 15:45:04 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins319728589575718408.sh 15:45:04 ---> python-tools-install.sh 15:45:04 Setup pyenv: 15:45:04 * system (set by /opt/pyenv/version) 15:45:04 * 3.8.20 (set by /opt/pyenv/version) 15:45:04 * 3.9.20 (set by /opt/pyenv/version) 15:45:04 3.10.15 15:45:04 3.11.10 15:45:08 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-nsc0 15:45:08 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 15:45:08 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:13 lf-activate-venv(): INFO: Installing additional packages: lftools 15:45:36 lf-activate-venv(): INFO: Adding /tmp/venv-nsc0/bin to PATH 15:45:36 Generating Requirements File 15:46:00 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:46:00 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 15:46:01 Python 3.11.10 15:46:01 pip 26.2.1 from /tmp/venv-nsc0/lib/python3.11/site-packages/pip (python 3.11) 15:46:01 aiohappyeyeballs==2.7.1 15:46:01 aiohttp==3.14.4 15:46:01 aiosignal==1.4.0 15:46:01 appdirs==1.4.4 15:46:01 argcomplete==3.7.2 15:46:01 aspy.yaml==1.3.0 15:46:01 attrs==26.1.0 15:46:01 autopage==0.6.0 15:46:01 beautifulsoup4==4.15.0 15:46:01 boto3==1.43.108 15:46:01 botocore==1.43.108 15:46:01 bs4==0.0.2 15:46:01 certifi==2026.7.22 15:46:01 cffi==2.1.1 15:46:01 cfgv==3.5.0 15:46:01 chardet==7.6.0 15:46:01 charset-normalizer==3.5.2 15:46:01 click==8.5.0 15:46:01 cliff==4.16.0 15:46:01 cmd2==4.2.4 15:46:01 cryptography==3.3.2 15:46:01 debtcollector==3.1.0 15:46:01 decorator==5.3.1 15:46:01 defusedxml==0.7.1 15:46:01 Deprecated==1.3.1 15:46:01 distlib==0.4.3 15:46:01 dnspython==2.8.0 15:46:01 docker==7.2.0 15:46:01 dogpile.cache==1.5.0 15:46:01 durationpy==0.11 15:46:01 email-validator==2.3.0 15:46:01 filelock==4.0.12 15:46:01 frozenlist==1.8.0 15:46:01 future==1.0.0 15:46:01 gitdb==4.0.12 15:46:01 GitPython==3.2.0 15:46:01 httplib2==0.30.2 15:46:01 identify==2.6.20 15:46:01 idna==3.20 15:46:01 importlib-resources==1.5.0 15:46:01 iso8601==2.1.0 15:46:01 Jinja2==3.1.6 15:46:01 jmespath==1.1.0 15:46:01 jsonpatch==1.33 15:46:01 jsonpointer==3.1.1 15:46:01 jsonschema==4.26.0 15:46:01 jsonschema-specifications==2025.9.1 15:46:01 keystoneauth1==5.17.0 15:46:01 kubernetes==36.0.3 15:46:01 lftools==0.37.23 15:46:01 lxml==6.1.3 15:46:01 markdown-it-py==4.2.0 15:46:01 MarkupSafe==3.0.4 15:46:01 mdurl==0.1.2 15:46:01 msgpack==1.2.3 15:46:01 multi_key_dict==2.0.3 15:46:01 multidict==6.9.1 15:46:01 munch==4.0.0 15:46:01 netaddr==1.3.0 15:46:01 niet==1.4.2 15:46:01 nodeenv==1.11.0 15:46:01 oauth2client==4.1.3 15:46:01 oauthlib==4.0.0 15:46:01 openstacksdk==4.20.0 15:46:01 os-service-types==1.9.0 15:46:01 osc-lib==4.7.0 15:46:01 oslo.config==10.7.0 15:46:01 oslo.context==6.5.0 15:46:01 oslo.i18n==6.9.0 15:46:01 oslo.log==8.3.2 15:46:01 oslo.serialization==5.11.0 15:46:01 oslo.utils==10.2.0 15:46:01 packaging==26.3 15:46:01 pbr==7.0.3 15:46:01 platformdirs==4.12.3 15:46:01 prettytable==3.18.0 15:46:01 prompt_toolkit==3.0.53 15:46:01 propcache==0.5.4 15:46:01 psutil==7.2.2 15:46:01 pyasn1==0.6.4 15:46:01 pyasn1_modules==0.4.2 15:46:01 pycparser==3.0 15:46:01 pygerrit2==2.0.15 15:46:01 PyGithub==2.10.0 15:46:01 Pygments==2.21.0 15:46:01 PyJWT==2.15.1 15:46:01 PyNaCl==1.6.2 15:46:01 pyparsing==2.4.7 15:46:01 pyperclip==1.11.0 15:46:01 pyrsistent==0.20.0 15:46:01 python-dateutil==2.9.0.post0 15:46:01 python-discovery==1.6.1 15:46:01 python-heatclient==5.3.0 15:46:01 python-jenkins==1.8.3 15:46:01 python-keystoneclient==6.0.0 15:46:01 python-magnumclient==5.0.0 15:46:01 python-manilaclient==6.3.0 15:46:01 python-openstackclient==10.3.0 15:46:01 python-swiftclient==4.11.0 15:46:01 PyYAML==6.0.3 15:46:01 referencing==0.37.0 15:46:01 requests==2.34.2 15:46:01 requests-oauthlib==2.0.0 15:46:01 rfc3986==2.0.0 15:46:01 rich==15.0.0 15:46:01 rich-argparse==1.8.0 15:46:01 rpds-py==2026.9.1 15:46:01 rsa==4.9.1 15:46:01 ruamel.yaml==0.19.1 15:46:01 ruamel.yaml.clib==0.2.15 15:46:01 s3transfer==0.19.2 15:46:01 simplejson==4.2.0 15:46:01 six==1.17.0 15:46:01 smmap==5.0.3 15:46:01 soupsieve==2.10 15:46:01 stevedore==5.9.1 15:46:01 tabulate==0.10.0 15:46:01 toml==0.10.2 15:46:01 tomlkit==0.15.1 15:46:01 tqdm==4.70.1 15:46:01 typing_extensions==4.16.0 15:46:01 urllib3==1.26.20 15:46:01 virtualenv==21.14.5 15:46:01 wcwidth==0.9.2 15:46:01 websocket-client==1.9.2 15:46:01 wrapt==2.5.0 15:46:01 xdg==6.0.0 15:46:01 xmltodict==1.0.4 15:46:01 yarl==1.25.1 15:46:01 yq==4.4.0 15:46:01 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins8393796630142084277.sh 15:46:01 ---> uv-install.sh 15:46:01 Installing uv/uvx (latest) using shell installer 15:46:02 2026-10-06 15:46:02 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-rFwVrE.sh" [1] 15:46:02 downloading uv 0.12.23 x86_64-unknown-linux-gnu 15:46:02 installing to /home/jenkins/.local/bin 15:46:02 uv 15:46:02 uvx 15:46:02 everything's installed! 15:46:03 15:46:03 To add $HOME/.local/bin to your PATH, either restart your shell or run: 15:46:03 15:46:03 source $HOME/.local/bin/env (sh, bash, zsh) 15:46:03 source $HOME/.local/bin/env.fish (fish) 15:46:03 Adding install location to PATH 15:46:03 ---> Validating uv/uvx install 15:46:03 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:46:03 [EnvInject] - Injecting environment variables from a build step. 15:46:03 [EnvInject] - Injecting as environment variables the properties content 15:46:03 PYTHON=python3 15:46:03 15:46:03 [EnvInject] - Variables injected successfully. 15:46:03 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14464294748542259603.sh 15:46:03 ---> tox-install.sh 15:46:03 + source /home/jenkins/lf-env.sh 15:46:03 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:46:03 ++ mktemp -d /tmp/venv-XXXX 15:46:03 + lf_venv=/tmp/venv-7GWe 15:46:03 + local venv_file=/tmp/.os_lf_venv 15:46:03 + local python=python3 15:46:03 + local options 15:46:03 + local set_path=true 15:46:03 + local install_args= 15:46:03 ++ 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:46:03 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:46:03 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:46:03 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:46:03 + true 15:46:03 + case $1 in 15:46:03 + venv_file=/tmp/.toxenv 15:46:03 + shift 2 15:46:03 + true 15:46:03 + case $1 in 15:46:03 + shift 15:46:03 + break 15:46:03 + case $python in 15:46:03 + local pkg_list= 15:46:03 + [[ -d /opt/pyenv ]] 15:46:03 + echo 'Setup pyenv:' 15:46:03 Setup pyenv: 15:46:03 + export PYENV_ROOT=/opt/pyenv 15:46:03 + PYENV_ROOT=/opt/pyenv 15:46:03 + 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:46:03 + 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:46:03 + pyenv versions 15:46:03 system 15:46:03 3.8.20 15:46:03 3.9.20 15:46:03 3.10.15 15:46:03 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:46:03 + command -v pyenv 15:46:03 ++ pyenv init - --no-rehash 15:46:03 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:46:03 for i in ${!paths[@]}; do 15:46:03 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:46:03 fi; done; 15:46:03 echo "${paths[*]}"'\'')" 15:46:03 export PATH="/opt/pyenv/shims:${PATH}" 15:46:03 export PYENV_SHELL=bash 15:46:03 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:46:03 pyenv() { 15:46:03 local command 15:46:03 command="${1:-}" 15:46:03 if [ "$#" -gt 0 ]; then 15:46:03 shift 15:46:03 fi 15:46:03 15:46:03 case "$command" in 15:46:03 rehash|shell) 15:46:03 eval "$(pyenv "sh-$command" "$@")" 15:46:03 ;; 15:46:03 *) 15:46:03 command pyenv "$command" "$@" 15:46:03 ;; 15:46:03 esac 15:46:03 }' 15:46:03 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:46:03 for i in ${!paths[@]}; do 15:46:03 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:46:03 fi; done; 15:46:03 echo "${paths[*]}"' 15:46:03 ++ 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:46:03 ++ 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:46:03 ++ 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:46:03 ++ export PYENV_SHELL=bash 15:46:03 ++ PYENV_SHELL=bash 15:46:03 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:46:03 +++ complete -F _pyenv pyenv 15:46:03 ++ lf-pyver python3 15:46:03 ++ local py_version_xy=python3 15:46:03 ++ local py_version_xyz= 15:46:03 ++ pyenv versions 15:46:03 ++ sed 's/^[ *]* //' 15:46:03 ++ local command 15:46:03 ++ awk '{ print $1 }' 15:46:03 ++ command=versions 15:46:03 ++ '[' 1 -gt 0 ']' 15:46:03 ++ shift 15:46:03 ++ case "$command" in 15:46:03 ++ command pyenv versions 15:46:03 ++ grep -E '^[0-9.]*[0-9]$' 15:46:03 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:46:03 +++ grep '^3' /tmp/.pyenv_versions 15:46:03 +++ sort -V 15:46:03 +++ tail -n 1 15:46:03 ++ py_version_xyz=3.11.10 15:46:03 ++ [[ -z 3.11.10 ]] 15:46:03 ++ echo 3.11.10 15:46:03 ++ return 0 15:46:03 + pyenv local 3.11.10 15:46:03 + local command 15:46:03 + command=local 15:46:03 + '[' 2 -gt 0 ']' 15:46:03 + shift 15:46:03 + case "$command" in 15:46:03 + command pyenv local 3.11.10 15:46:03 + for arg in "$@" 15:46:03 + case $arg in 15:46:03 + pkg_list+='tox ' 15:46:03 + for arg in "$@" 15:46:03 + case $arg in 15:46:03 + pkg_list+='virtualenv ' 15:46:03 + for arg in "$@" 15:46:03 + case $arg in 15:46:03 + pkg_list+='urllib3~=1.26.15 ' 15:46:03 + [[ -f /tmp/.toxenv ]] 15:46:03 + [[ ! -f /tmp/.toxenv ]] 15:46:03 + [[ -n '' ]] 15:46:03 + python3 -m venv /tmp/venv-7GWe 15:46:07 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-7GWe' 15:46:07 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-7GWe 15:46:07 + echo /tmp/venv-7GWe 15:46:07 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 15:46:07 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 15:46:07 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:46:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:46:07 + local 'pip_opts=--upgrade --quiet' 15:46:07 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:46:07 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:46:07 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:46:07 + [[ -n '' ]] 15:46:07 + [[ -n '' ]] 15:46:07 + lf-venv-pip-install /tmp/venv-7GWe/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:46:07 + local venv_python=/tmp/venv-7GWe/bin/python3 15:46:07 + shift 15:46:07 + local upstream=https://pypi.org/simple 15:46:07 + /tmp/venv-7GWe/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:46:11 + return 0 15:46:11 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:46:11 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:46:11 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:46:11 + lf-venv-pip-install /tmp/venv-7GWe/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:46:11 + local venv_python=/tmp/venv-7GWe/bin/python3 15:46:11 + shift 15:46:11 + local upstream=https://pypi.org/simple 15:46:11 + /tmp/venv-7GWe/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:46:13 + return 0 15:46:13 + type python3 15:46:13 + true 15:46:13 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-7GWe/bin to PATH' 15:46:13 lf-activate-venv(): INFO: Adding /tmp/venv-7GWe/bin to PATH 15:46:13 + PATH=/tmp/venv-7GWe/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:46:13 + return 0 15:46:13 + python3 --version 15:46:13 Python 3.11.10 15:46:13 + python3 -m pip --version 15:46:13 pip 26.2.1 from /tmp/venv-7GWe/lib/python3.11/site-packages/pip (python 3.11) 15:46:13 + python3 -m pip freeze 15:46:13 cachetools==7.2.1 15:46:13 colorama==0.4.6 15:46:13 distlib==0.4.3 15:46:13 filelock==4.0.12 15:46:13 packaging==26.3 15:46:13 platformdirs==4.12.3 15:46:13 pluggy==1.6.0 15:46:13 pyproject-api==1.11.3 15:46:13 python-discovery==1.6.1 15:46:13 tomli_w==1.2.0 15:46:13 tox==4.64.9 15:46:13 typing_extensions==4.16.0 15:46:13 urllib3==1.26.20 15:46:13 virtualenv==21.14.5 15:46:13 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins15879077769894086725.sh 15:46:13 [EnvInject] - Injecting environment variables from a build step. 15:46:13 [EnvInject] - Injecting as environment variables the properties content 15:46:13 PARALLEL=True 15:46:13 15:46:13 [EnvInject] - Variables injected successfully. 15:46:13 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins15596139520041988726.sh 15:46:13 ---> tox-run.sh 15:46:13 + 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:46:13 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:46:13 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:46:13 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:46:13 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 15:46:13 + source /home/jenkins/lf-env.sh 15:46:13 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:46:13 ++ mktemp -d /tmp/venv-XXXX 15:46:13 + lf_venv=/tmp/venv-HRCK 15:46:13 + local venv_file=/tmp/.os_lf_venv 15:46:13 + local python=python3 15:46:13 + local options 15:46:13 + local set_path=true 15:46:13 + local install_args= 15:46:13 ++ 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:46:13 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:46:13 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:46:13 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:46:13 + true 15:46:13 + case $1 in 15:46:13 + venv_file=/tmp/.toxenv 15:46:13 + shift 2 15:46:13 + true 15:46:13 + case $1 in 15:46:13 + shift 15:46:13 + break 15:46:13 + case $python in 15:46:13 + local pkg_list= 15:46:13 + [[ -d /opt/pyenv ]] 15:46:13 + echo 'Setup pyenv:' 15:46:13 Setup pyenv: 15:46:13 + export PYENV_ROOT=/opt/pyenv 15:46:13 + PYENV_ROOT=/opt/pyenv 15:46:13 + 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:46:13 + 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:46:13 + pyenv versions 15:46:13 system 15:46:13 3.8.20 15:46:13 3.9.20 15:46:13 3.10.15 15:46:13 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:46:13 + command -v pyenv 15:46:13 ++ pyenv init - --no-rehash 15:46:13 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:46:13 for i in ${!paths[@]}; do 15:46:13 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:46:13 fi; done; 15:46:13 echo "${paths[*]}"'\'')" 15:46:13 export PATH="/opt/pyenv/shims:${PATH}" 15:46:13 export PYENV_SHELL=bash 15:46:13 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:46:13 pyenv() { 15:46:13 local command 15:46:13 command="${1:-}" 15:46:13 if [ "$#" -gt 0 ]; then 15:46:13 shift 15:46:13 fi 15:46:13 15:46:13 case "$command" in 15:46:13 rehash|shell) 15:46:13 eval "$(pyenv "sh-$command" "$@")" 15:46:13 ;; 15:46:13 *) 15:46:13 command pyenv "$command" "$@" 15:46:13 ;; 15:46:13 esac 15:46:13 }' 15:46:13 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:46:13 for i in ${!paths[@]}; do 15:46:13 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:46:13 fi; done; 15:46:13 echo "${paths[*]}"' 15:46:13 ++ 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:46:13 ++ 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:46:13 ++ 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:46:13 ++ export PYENV_SHELL=bash 15:46:13 ++ PYENV_SHELL=bash 15:46:13 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:46:13 +++ complete -F _pyenv pyenv 15:46:13 ++ lf-pyver python3 15:46:13 ++ local py_version_xy=python3 15:46:13 ++ local py_version_xyz= 15:46:13 ++ pyenv versions 15:46:13 ++ local command 15:46:13 ++ command=versions 15:46:13 ++ '[' 1 -gt 0 ']' 15:46:13 ++ shift 15:46:13 ++ case "$command" in 15:46:13 ++ command pyenv versions 15:46:13 ++ awk '{ print $1 }' 15:46:13 ++ grep -E '^[0-9.]*[0-9]$' 15:46:13 ++ sed 's/^[ *]* //' 15:46:13 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:46:13 +++ grep '^3' /tmp/.pyenv_versions 15:46:13 +++ tail -n 1 15:46:13 +++ sort -V 15:46:13 ++ py_version_xyz=3.11.10 15:46:13 ++ [[ -z 3.11.10 ]] 15:46:13 ++ echo 3.11.10 15:46:13 ++ return 0 15:46:13 + pyenv local 3.11.10 15:46:13 + local command 15:46:13 + command=local 15:46:13 + '[' 2 -gt 0 ']' 15:46:13 + shift 15:46:13 + case "$command" in 15:46:13 + command pyenv local 3.11.10 15:46:13 + for arg in "$@" 15:46:13 + case $arg in 15:46:13 + pkg_list+='tox ' 15:46:13 + for arg in "$@" 15:46:13 + case $arg in 15:46:13 + pkg_list+='virtualenv ' 15:46:13 + for arg in "$@" 15:46:13 + case $arg in 15:46:13 + pkg_list+='urllib3~=1.26.15 ' 15:46:13 + [[ -f /tmp/.toxenv ]] 15:46:13 ++ cat /tmp/.toxenv 15:46:13 + lf_venv=/tmp/venv-7GWe 15:46:13 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-7GWe from' file:/tmp/.toxenv 15:46:13 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-7GWe from file:/tmp/.toxenv 15:46:13 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:46:13 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:46:13 + local 'pip_opts=--upgrade --quiet' 15:46:13 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:46:13 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:46:13 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:46:13 + [[ -n '' ]] 15:46:13 + [[ -n '' ]] 15:46:13 + lf-venv-pip-install /tmp/venv-7GWe/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:46:13 + local venv_python=/tmp/venv-7GWe/bin/python3 15:46:13 + shift 15:46:13 + local upstream=https://pypi.org/simple 15:46:13 + /tmp/venv-7GWe/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:46:14 + return 0 15:46:14 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:46:14 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:46:14 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:46:14 + lf-venv-pip-install /tmp/venv-7GWe/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:46:14 + local venv_python=/tmp/venv-7GWe/bin/python3 15:46:14 + shift 15:46:14 + local upstream=https://pypi.org/simple 15:46:14 + /tmp/venv-7GWe/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:46:15 + return 0 15:46:15 + type python3 15:46:15 + true 15:46:15 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-7GWe/bin to PATH' 15:46:15 lf-activate-venv(): INFO: Adding /tmp/venv-7GWe/bin to PATH 15:46:15 + PATH=/tmp/venv-7GWe/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:46:15 + return 0 15:46:15 + [[ -d /opt/pyenv ]] 15:46:15 + echo '---> Setting up pyenv' 15:46:15 ---> Setting up pyenv 15:46:15 + export PYENV_ROOT=/opt/pyenv 15:46:15 + PYENV_ROOT=/opt/pyenv 15:46:15 + export PATH=/opt/pyenv/bin:/tmp/venv-7GWe/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:46:15 + PATH=/opt/pyenv/bin:/tmp/venv-7GWe/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:46:15 ++ pwd 15:46:15 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 15:46:15 + export PYTHONPATH 15:46:15 + export TOX_TESTENV_PASSENV=PYTHONPATH 15:46:15 + TOX_TESTENV_PASSENV=PYTHONPATH 15:46:15 + tox --version 15:46:16 4.64.9 from /tmp/venv-7GWe/lib/python3.11/site-packages/tox/__init__.py 15:46:16 + PARALLEL=True 15:46:16 + TOX_OPTIONS_LIST= 15:46:16 + [[ -n '' ]] 15:46:16 + case ${PARALLEL,,} in 15:46:16 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 15:46:16 + tox --parallel auto --parallel-live 15:46:16 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 15:46:17 checkbashisms: freeze> python -m pip freeze --all 15:46:17 docs: install_deps> python -I -m pip install -r docs/requirements.txt 15:46:17 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 15:46:17 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:46:18 checkbashisms: pip==26.2.1,setuptools==84.0.0 15:46:18 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:46:18 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:46:18 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 15:46:19 checkbashisms: OK ✔ in 3.08 seconds 15:46:19 pre-commit: install_deps> python -I -m pip install pre-commit 15:46:22 pre-commit: freeze> python -m pip freeze --all 15:46:22 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:46:22 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:46:22 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:46:22 /usr/bin/cpan 15:46:22 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 15:46:22 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 15:46:22 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 15:46:23 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 15:46:24 buildcontroller: freeze> python -m pip freeze --all 15:46:24 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:46:24 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 15:46:24 + update-java-alternatives -l 15:46:24 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 15:46:24 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 15:46:24 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 15:46:24 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 15:46:24 update-alternatives: error: no alternatives for jaotc 15:46:24 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:46:24 update-alternatives: error: no alternatives for rmic 15:46:24 + java -version 15:46:24 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 15:46:24 + JAVA_VER=21.0 15:46:24 + echo 21.0 15:46:24 21.0 15:46:24 + javac -version 15:46:24 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 15:46:24 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 15:46:24 + JAVAC_VER=21.0 15:46:24 + echo 21.0 15:46:24 + [ 21.0 -ge 21 ] 15:46:24 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 15:46:24 + echo No java21 or newer available 15:46:24 + exit 1 15:46:24 21.0 15:46:24 No java21 or newer available 15:46:24 buildcontroller: exit 1 (0.47 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2699 15:46:25 buildcontroller: FAIL ✖ in 8.38 seconds 15:46:25 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 15:46:25 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 15:46:26 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 15:46:26 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 15:46:27 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 15:46:27 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 15:46:27 pylint: freeze> python -m pip freeze --all 15:46:27 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:46:27 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:46:28 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 15:46:28 [INFO] Once installed this environment will be reused. 15:46:28 [INFO] This may take a few minutes... 15:46:30 docs-linkcheck: freeze> python -m pip freeze --all 15:46:30 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:46:30 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:46:30 docs: freeze> python -m pip freeze --all 15:46:30 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:46:30 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:46:33 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:46:33 [INFO] Once installed this environment will be reused. 15:46:33 [INFO] This may take a few minutes... 15:46:33 docs: OK ✔ in 16.81 seconds 15:46:33 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:46:33 docs-linkcheck: OK ✔ in 17.32 seconds 15:46:33 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:46:37 [INFO] Installing environment for https://github.com/hhatto/autopep8. 15:46:37 [INFO] Once installed this environment will be reused. 15:46:37 [INFO] This may take a few minutes... 15:46:39 build_karaf_tests221: freeze> python -m pip freeze --all 15:46:39 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:46:39 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:39 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 15:46:39 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:39 build karaf in karaf221 with ./karaf221.env 15:46:39 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:39 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3329 15:46:40 build_karaf_tests221: FAIL ✖ in 6.74 seconds 15:46:40 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:46:40 build_karaf_tests71: freeze> python -m pip freeze --all 15:46:40 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:46:40 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:40 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 15:46:40 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:40 build karaf in karaf71 with ./karaf71.env 15:46:40 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:40 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3351 15:46:40 build_karaf_tests71: FAIL ✖ in 6.68 seconds 15:46:40 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:46:41 [INFO] Installing environment for https://github.com/perltidy/perltidy. 15:46:41 [INFO] Once installed this environment will be reused. 15:46:41 [INFO] This may take a few minutes... 15:46:44 ************* Module 2.2.1.test12_end2end 15:46:44 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 ************* Module common.test_utils 15:46:44 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:44 15:46:44 ----------------------------------- 15:46:44 Your code has been rated at 9.99/10 15:46:44 15:46:45 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=3161 15:46:46 pylint: FAIL ✖ in 21.14 seconds 15:46:46 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:46:46 build_karaf_tests200: freeze> python -m pip freeze --all 15:46:46 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:46:46 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:46 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 15:46:46 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:46 build karaf in karafoc200 with ./karafoc200.env 15:46:46 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:46 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3396 15:46:46 build_karaf_tests200: FAIL ✖ in 6.47 seconds 15:46:46 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:46:46 buildlighty: freeze> python -m pip freeze --all 15:46:46 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:46:46 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 15:46:46 ./build.sh: 7: mvn: not found 15:46:46 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 15:46:46 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3416 15:46:49 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 15:46:49 [INFO] Once installed this environment will be reused. 15:46:49 [INFO] This may take a few minutes... 15:46:52 buildlighty: FAIL ✖ in 6.35 seconds 15:46:52 sims: freeze> python -m pip freeze --all 15:46:52 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:46:52 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 15:46:52 Using lighynode version 22.1.0.7 15:46:52 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 15:46:52 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 15:46:52 [INFO] Once installed this environment will be reused. 15:46:52 [INFO] This may take a few minutes... 15:46:57 trim trailing whitespace.................................................Passed 15:46:57 fix end of files.........................................................Passed 15:46:57 check for added large files..............................................Passed 15:46:57 check for merge conflicts................................................Passed 15:46:57 check for case conflicts.................................................Passed 15:46:57 check json...............................................................Passed 15:46:58 mixed line ending........................................................Passed 15:46:58 Tabs remover.............................................................Passed 15:46:58 autopep8.................................................................Passed 15:47:00 perltidy.................................................................Passed 15:47:00 ShellCheck v0.11.0.......................................................Passed 15:47:05 prettier.................................................................Passed 15:47:07 yamllint.................................................................Passed 15:47:07 sims: OK ✔ in 10.42 seconds 15:47:07 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 15:47:07 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 15:47:07 [INFO] Once installed this environment will be reused. 15:47:07 [INFO] This may take a few minutes... 15:47:15 gitlint..................................................................Passed 15:47:31 pre-commit: OK ✔ in 56.13 seconds 15:47:31 testsPCE: freeze> python -m pip freeze --all 15:47:32 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:47:32 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 15:47:32 pytest -q transportpce_tests/pce/test01_pce.py 15:49:32 EEEEEEEEEEEEEEEEEEEE [100%] 15:49:36 ==================================== ERRORS ==================================== 15:49:36 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 15:49:36 15:49:36 cls = 15:49:36 15:49:36 @classmethod 15:49:36 def setUpClass(cls): 15:49:36 # pylint: disable=bare-except 15:49:36 sample_files_parsed = False 15:49:36 time.sleep(20) 15:49:36 try: 15:49:36 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:36 "..", "..", "sample_configs", "honeynode-topo.json") 15:49:36 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 15:49:36 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 15:49:36 15:49:36 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:36 "..", "..", "sample_configs", "NW-simple-topology.json") 15:49:36 15:49:36 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 15:49:36 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 15:49:36 15:49:36 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:36 "..", "..", "sample_configs", "NW-for-test-5-4.json") 15:49:36 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 15:49:36 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 15:49:36 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:36 "..", "..", "sample_configs", "pce_portmapping_221.json") 15:49:36 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 15:49:36 cls.port_mapping_data = port_mapping.read() 15:49:36 sample_files_parsed = True 15:49:36 except PermissionError as err: 15:49:36 print("Permission Error when trying to read sample files\n", err) 15:49:36 sys.exit(2) 15:49:36 except FileNotFoundError as err: 15:49:36 print("File Not found Error when trying to read sample files\n", err) 15:49:36 sys.exit(2) 15:49:36 except: 15:49:36 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 15:49:36 sys.exit(2) 15:49:36 finally: 15:49:36 if sample_files_parsed: 15:49:36 print("sample files content loaded") 15:49:36 15:49:36 > cls.processes = test_utils.start_tpce() 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 15:49:36 transportpce_tests/pce/test01_pce.py:93: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 def start_tpce(): 15:49:36 if 'NO_ODL_STARTUP' in os.environ: 15:49:36 print('No OpenDaylight instance to start!') 15:49:36 return [] 15:49:36 print('starting OpenDaylight...') 15:49:36 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:49:36 process = start_lighty() 15:49:36 else: 15:49:36 process = start_karaf() 15:49:36 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:49:36 print('OpenDaylight started !') 15:49:36 else: 15:49:36 print('OpenDaylight failed to start !') 15:49:36 shutdown_process(process) 15:49:36 for pid in process_list: 15:49:36 shutdown_process(pid) 15:49:36 > sys.exit(1) 15:49:36 E SystemExit: 1 15:49:36 15:49:36 transportpce_tests/common/test_utils.py:234: SystemExit 15:49:36 ---------------------------- Captured stdout setup ----------------------------- 15:49:36 sample files content loaded 15:49:36 starting OpenDaylight... 15:49:36 starting KARAF (karaf) TransportPCE build... 15:49:36 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:49:36 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91586660> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91587c40> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91587420> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e93ad8040> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e915871a0> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91587c40> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e90fb1da0> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91573ce0> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91573a60> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91573ce0> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e90fb1940> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e915871a0> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91573a60> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e90fb2980> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91573a60> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91584400> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e90fb22a0> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91584400> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 15:49:36 15:49:36 cls = 15:49:36 func = . at 0x7f7e91584180> 15:49:36 when = 'setup' 15:49:36 reraise = (, ) 15:49:36 15:49:36 @classmethod 15:49:36 def from_call( 15:49:36 cls, 15:49:36 func: Callable[[], TResult], 15:49:36 when: Literal["collect", "setup", "call", "teardown"], 15:49:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:36 ) -> CallInfo[TResult]: 15:49:36 """Call func, wrapping the result in a CallInfo. 15:49:36 15:49:36 :param func: 15:49:36 The function to call. Called without arguments. 15:49:36 :type func: Callable[[], _pytest.runner.TResult] 15:49:36 :param when: 15:49:36 The phase in which the function is called. 15:49:36 :param reraise: 15:49:36 Exception or exceptions that shall propagate if raised by the 15:49:36 function, instead of being wrapped in the CallInfo. 15:49:36 """ 15:49:36 excinfo = None 15:49:36 instant = timing.Instant() 15:49:36 try: 15:49:36 > result: TResult | None = func() 15:49:36 ^^^^^^ 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:36 lambda: runtest_hook(item=item, **kwds), 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:36 yield 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:36 return (yield) 15:49:36 ^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:36 item.session._setupstate.setup(item) 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:36 col.setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:36 super().setup() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:36 self._request._fillfixtures() 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:36 fixturedef = self._get_active_fixturedef(argname) 15:49:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:36 fixturedef.execute(request=subrequest) 15:49:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:36 15:49:36 self = 15:49:36 request = > 15:49:36 15:49:36 def execute(self, request: SubRequest) -> FixtureValue: 15:49:36 """Return the value of this fixture, executing it if not cached.""" 15:49:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:36 # This needs to be done before checking if we have a cached value, since 15:49:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:36 # parametrization, they finalize themselves and fixtures depending on it 15:49:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:36 # See #4871 15:49:36 requested_fixtures_that_should_finalize_us = [] 15:49:36 for argname in self.argnames: 15:49:36 fixturedef = request._get_active_fixturedef(argname) 15:49:36 # Saves requested fixtures in a list so we later can add our finalizer 15:49:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:36 # down first. This is generally handled by SetupState, but still currently 15:49:36 # needed when this fixture is not parametrized but depends on a parametrized 15:49:36 # fixture. 15:49:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:36 15:49:36 # Check for (and return) cached value/exception. 15:49:36 if self.cached_result is not None: 15:49:36 request_cache_key = self.cache_key(request) 15:49:36 cache_key = self.cached_result[1] 15:49:36 try: 15:49:36 # Attempt to make a normal == check: this might fail for objects 15:49:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:36 cache_hit = bool(request_cache_key == cache_key) 15:49:36 except (ValueError, RuntimeError): 15:49:36 # If the comparison raises, use 'is' as fallback. 15:49:36 cache_hit = request_cache_key is cache_key 15:49:36 15:49:36 if cache_hit: 15:49:36 if self.cached_result[2] is not None: 15:49:36 exc, exc_tb = self.cached_result[2] 15:49:36 raise exc.with_traceback(exc_tb) 15:49:36 else: 15:49:36 return self.cached_result[0] 15:49:36 # We have a previous but differently parametrized fixture instance 15:49:36 # so we need to tear it down before creating a new one. 15:49:36 self.finish(request) 15:49:36 assert self.cached_result is None 15:49:36 15:49:36 # Add finalizer to requested fixtures we saved previously. 15:49:36 # We make sure to do this after checking for cached value to avoid 15:49:36 # adding our finalizer multiple times. (#12135) 15:49:36 finalizer = functools.partial(self.finish, request=request) 15:49:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:36 parent_fixture.addfinalizer(finalizer) 15:49:36 15:49:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:36 # which is executed last. 15:49:36 > assert not self._finalizers 15:49:36 ^^^^^^^^^^^^^^^^^^^^ 15:49:36 E AssertionError 15:49:36 15:49:36 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:36 =========================== short test summary info ============================ 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 15:49:36 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 15:49:36 20 errors in 123.76s (0:02:03) 15:49:36 testsPCE: exit 1 (124.04 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4168 15:49:36 testsPCE: FAIL ✖ in 2 minutes 49.75 seconds 15:49:36 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:49:42 tests_tapi: freeze> python -m pip freeze --all 15:49:42 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:49:42 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 15:49:42 using environment variables from ./karaf221.env 15:49:42 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 15:51:23 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:51:32 ==================================== ERRORS ==================================== 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 15:51:32 15:51:32 cls = 15:51:32 15:51:32 @classmethod 15:51:32 def setUpClass(cls): 15:51:32 cls.init_failed = False 15:51:32 os.environ['JAVA_MIN_MEM'] = '1024M' 15:51:32 os.environ['JAVA_MAX_MEM'] = '4096M' 15:51:32 > cls.processes = test_utils.start_tpce() 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 15:51:32 transportpce_tests/tapi/test01_abstracted_topology.py:148: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 def start_tpce(): 15:51:32 if 'NO_ODL_STARTUP' in os.environ: 15:51:32 print('No OpenDaylight instance to start!') 15:51:32 return [] 15:51:32 print('starting OpenDaylight...') 15:51:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:51:32 process = start_lighty() 15:51:32 else: 15:51:32 process = start_karaf() 15:51:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:51:32 print('OpenDaylight started !') 15:51:32 else: 15:51:32 print('OpenDaylight failed to start !') 15:51:32 shutdown_process(process) 15:51:32 for pid in process_list: 15:51:32 shutdown_process(pid) 15:51:32 > sys.exit(1) 15:51:32 E SystemExit: 1 15:51:32 15:51:32 transportpce_tests/common/test_utils.py:234: SystemExit 15:51:32 ---------------------------- Captured stdout setup ----------------------------- 15:51:32 starting OpenDaylight... 15:51:32 starting KARAF (karaf221) TransportPCE build... 15:51:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751f9c0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a756fc40> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a9c23060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a8e6b060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a756f100> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751f880> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a756f6a0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a9c23060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e0c0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a9c23060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156020> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a9c23060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e3e0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a71565c0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751de40> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a756f100> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751de40> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a9c23060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a9c23060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7155bc0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7155bc0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7154d60> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a71547c0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156ac0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7155300> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156ac0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7155a80> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156fc0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7155e40> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156020> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156340> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7156340> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7157240> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7157420> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7157560> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a71563e0> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7155a80> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a751e660> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 15:51:32 15:51:32 cls = 15:51:32 func = . at 0x7f26a7157060> 15:51:32 when = 'setup' 15:51:32 reraise = (, ) 15:51:32 15:51:32 @classmethod 15:51:32 def from_call( 15:51:32 cls, 15:51:32 func: Callable[[], TResult], 15:51:32 when: Literal["collect", "setup", "call", "teardown"], 15:51:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:32 ) -> CallInfo[TResult]: 15:51:32 """Call func, wrapping the result in a CallInfo. 15:51:32 15:51:32 :param func: 15:51:32 The function to call. Called without arguments. 15:51:32 :type func: Callable[[], _pytest.runner.TResult] 15:51:32 :param when: 15:51:32 The phase in which the function is called. 15:51:32 :param reraise: 15:51:32 Exception or exceptions that shall propagate if raised by the 15:51:32 function, instead of being wrapped in the CallInfo. 15:51:32 """ 15:51:32 excinfo = None 15:51:32 instant = timing.Instant() 15:51:32 try: 15:51:32 > result: TResult | None = func() 15:51:32 ^^^^^^ 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:32 lambda: runtest_hook(item=item, **kwds), 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:32 yield 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:32 return (yield) 15:51:32 ^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:32 item.session._setupstate.setup(item) 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:32 col.setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:32 super().setup() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:32 self._request._fillfixtures() 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:32 fixturedef = self._get_active_fixturedef(argname) 15:51:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:32 fixturedef.execute(request=subrequest) 15:51:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:32 15:51:32 self = 15:51:32 request = > 15:51:32 15:51:32 def execute(self, request: SubRequest) -> FixtureValue: 15:51:32 """Return the value of this fixture, executing it if not cached.""" 15:51:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:32 # This needs to be done before checking if we have a cached value, since 15:51:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:32 # parametrization, they finalize themselves and fixtures depending on it 15:51:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:32 # See #4871 15:51:32 requested_fixtures_that_should_finalize_us = [] 15:51:32 for argname in self.argnames: 15:51:32 fixturedef = request._get_active_fixturedef(argname) 15:51:32 # Saves requested fixtures in a list so we later can add our finalizer 15:51:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:32 # down first. This is generally handled by SetupState, but still currently 15:51:32 # needed when this fixture is not parametrized but depends on a parametrized 15:51:32 # fixture. 15:51:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:32 15:51:32 # Check for (and return) cached value/exception. 15:51:32 if self.cached_result is not None: 15:51:32 request_cache_key = self.cache_key(request) 15:51:32 cache_key = self.cached_result[1] 15:51:32 try: 15:51:32 # Attempt to make a normal == check: this might fail for objects 15:51:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:32 cache_hit = bool(request_cache_key == cache_key) 15:51:32 except (ValueError, RuntimeError): 15:51:32 # If the comparison raises, use 'is' as fallback. 15:51:32 cache_hit = request_cache_key is cache_key 15:51:32 15:51:32 if cache_hit: 15:51:32 if self.cached_result[2] is not None: 15:51:32 exc, exc_tb = self.cached_result[2] 15:51:32 raise exc.with_traceback(exc_tb) 15:51:32 else: 15:51:32 return self.cached_result[0] 15:51:32 # We have a previous but differently parametrized fixture instance 15:51:32 # so we need to tear it down before creating a new one. 15:51:32 self.finish(request) 15:51:32 assert self.cached_result is None 15:51:32 15:51:32 # Add finalizer to requested fixtures we saved previously. 15:51:32 # We make sure to do this after checking for cached value to avoid 15:51:32 # adding our finalizer multiple times. (#12135) 15:51:32 finalizer = functools.partial(self.finish, request=request) 15:51:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:32 parent_fixture.addfinalizer(finalizer) 15:51:32 15:51:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:32 # which is executed last. 15:51:32 > assert not self._finalizers 15:51:32 ^^^^^^^^^^^^^^^^^^^^ 15:51:32 E AssertionError 15:51:32 15:51:32 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:32 =========================== short test summary info ============================ 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 15:51:32 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 15:51:32 51 errors in 109.37s (0:01:49) 15:51:32 tests_tapi: exit 1 (109.66 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=5119 15:51:32 tests_tapi: FAIL ✖ in 1 minute 56.21 seconds 15:51:32 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:51:32 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:51:38 tests221: freeze> python -m pip freeze --all 15:51:38 tests200: freeze> python -m pip freeze --all 15:51:39 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:51:39 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 15:51:39 using environment variables from ./karaf221.env 15:51:39 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 15:51:39 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:51:39 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 15:51:39 using environment variables from ./karafoc200.env 15:51:39 pytest -q transportpce_tests/oc200/test01_portmapping.py 15:53:19 EEEEEEEEEEEEEEEEEE [100%] 15:53:21 ==================================== ERRORS ==================================== 15:53:21 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 15:53:21 15:53:21 cls = 15:53:21 15:53:21 @classmethod 15:53:21 def setUpClass(cls): 15:53:21 > cls.processes = test_utils.start_tpce() 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 15:53:21 transportpce_tests/oc200/test01_portmapping.py:29: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 def start_tpce(): 15:53:21 if 'NO_ODL_STARTUP' in os.environ: 15:53:21 print('No OpenDaylight instance to start!') 15:53:21 return [] 15:53:21 print('starting OpenDaylight...') 15:53:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:53:21 process = start_lighty() 15:53:21 else: 15:53:21 process = start_karaf() 15:53:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:53:21 print('OpenDaylight started !') 15:53:21 else: 15:53:21 print('OpenDaylight failed to start !') 15:53:21 shutdown_process(process) 15:53:21 for pid in process_list: 15:53:21 shutdown_process(pid) 15:53:21 > sys.exit(1) 15:53:21 E SystemExit: 1 15:53:21 15:53:21 transportpce_tests/common/test_utils.py:234: SystemExit 15:53:21 ---------------------------- Captured stdout setup ----------------------------- 15:53:21 starting OpenDaylight... 15:53:21 starting KARAF (karafoc200) TransportPCE build... 15:53:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f9c13f420> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f99a43ec0> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f9b1f3600> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f99a1f740> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f9c13f420> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f9b1f3600> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f99a43880> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f99a436a0> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:53:21 15:53:21 cls = 15:53:21 func = . at 0x7f5f99a43600> 15:53:21 when = 'setup' 15:53:21 reraise = (, ) 15:53:21 15:53:21 @classmethod 15:53:21 def from_call( 15:53:21 cls, 15:53:21 func: Callable[[], TResult], 15:53:21 when: Literal["collect", "setup", "call", "teardown"], 15:53:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:21 ) -> CallInfo[TResult]: 15:53:21 """Call func, wrapping the result in a CallInfo. 15:53:21 15:53:21 :param func: 15:53:21 The function to call. Called without arguments. 15:53:21 :type func: Callable[[], _pytest.runner.TResult] 15:53:21 :param when: 15:53:21 The phase in which the function is called. 15:53:21 :param reraise: 15:53:21 Exception or exceptions that shall propagate if raised by the 15:53:21 function, instead of being wrapped in the CallInfo. 15:53:21 """ 15:53:21 excinfo = None 15:53:21 instant = timing.Instant() 15:53:21 try: 15:53:21 > result: TResult | None = func() 15:53:21 ^^^^^^ 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:21 lambda: runtest_hook(item=item, **kwds), 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:21 yield 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:21 return (yield) 15:53:21 ^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:21 item.session._setupstate.setup(item) 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:21 col.setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:21 super().setup() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:21 self._request._fillfixtures() 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:21 fixturedef = self._get_active_fixturedef(argname) 15:53:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:21 fixturedef.execute(request=subrequest) 15:53:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:21 15:53:21 self = 15:53:21 request = > 15:53:21 15:53:21 def execute(self, request: SubRequest) -> FixtureValue: 15:53:21 """Return the value of this fixture, executing it if not cached.""" 15:53:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:21 # This needs to be done before checking if we have a cached value, since 15:53:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:21 # parametrization, they finalize themselves and fixtures depending on it 15:53:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:21 # See #4871 15:53:21 requested_fixtures_that_should_finalize_us = [] 15:53:21 for argname in self.argnames: 15:53:21 fixturedef = request._get_active_fixturedef(argname) 15:53:21 # Saves requested fixtures in a list so we later can add our finalizer 15:53:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:21 # down first. This is generally handled by SetupState, but still currently 15:53:21 # needed when this fixture is not parametrized but depends on a parametrized 15:53:21 # fixture. 15:53:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:21 15:53:21 # Check for (and return) cached value/exception. 15:53:21 if self.cached_result is not None: 15:53:21 request_cache_key = self.cache_key(request) 15:53:21 cache_key = self.cached_result[1] 15:53:21 try: 15:53:21 # Attempt to make a normal == check: this might fail for objects 15:53:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:21 cache_hit = bool(request_cache_key == cache_key) 15:53:21 except (ValueError, RuntimeError): 15:53:21 # If the comparison raises, use 'is' as fallback. 15:53:21 cache_hit = request_cache_key is cache_key 15:53:21 15:53:21 if cache_hit: 15:53:21 if self.cached_result[2] is not None: 15:53:21 exc, exc_tb = self.cached_result[2] 15:53:21 raise exc.with_traceback(exc_tb) 15:53:21 else: 15:53:21 return self.cached_result[0] 15:53:21 # We have a previous but differently parametrized fixture instance 15:53:21 # so we need to tear it down before creating a new one. 15:53:21 self.finish(request) 15:53:21 assert self.cached_result is None 15:53:21 15:53:21 # Add finalizer to requested fixtures we saved previously. 15:53:21 # We make sure to do this after checking for cached value to avoid 15:53:21 # adding our finalizer multiple times. (#12135) 15:53:21 finalizer = functools.partial(self.finish, request=request) 15:53:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:21 parent_fixture.addfinalizer(finalizer) 15:53:21 15:53:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:21 # which is executed last. 15:53:21 > assert not self._finalizers 15:53:21 ^^^^^^^^^^^^^^^^^^^^ 15:53:21 E AssertionError 15:53:21 15:53:21 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:21 =========================== short test summary info ============================ 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 15:53:21 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:53:21 10 errors in 101.90s (0:01:41) 15:53:21 tests200: exit 1 (102.15 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=5278 15:53:21 Etests200: FAIL ✖ in 1 minute 48.94 seconds 15:53:21 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:53:21 EEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:53:26 ==================================== ERRORS ==================================== 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 15:53:26 15:53:26 cls = 15:53:26 15:53:26 @classmethod 15:53:26 def setUpClass(cls): 15:53:26 > cls.processes = test_utils.start_tpce() 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 15:53:26 transportpce_tests/2.2.1/test01_portmapping.py:33: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 def start_tpce(): 15:53:26 if 'NO_ODL_STARTUP' in os.environ: 15:53:26 print('No OpenDaylight instance to start!') 15:53:26 return [] 15:53:26 print('starting OpenDaylight...') 15:53:26 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:53:26 process = start_lighty() 15:53:26 else: 15:53:26 process = start_karaf() 15:53:26 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:53:26 print('OpenDaylight started !') 15:53:26 else: 15:53:26 print('OpenDaylight failed to start !') 15:53:26 shutdown_process(process) 15:53:26 for pid in process_list: 15:53:26 shutdown_process(pid) 15:53:26 > sys.exit(1) 15:53:26 E SystemExit: 1 15:53:26 15:53:26 transportpce_tests/common/test_utils.py:234: SystemExit 15:53:26 ---------------------------- Captured stdout setup ----------------------------- 15:53:26 starting OpenDaylight... 15:53:26 starting KARAF (karaf221) TransportPCE build... 15:53:26 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:53:26 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4ca700> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50ad40> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025cbd3240> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025bde7060> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4ca200> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025cbd3240> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50bba0> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50b240> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025cbd3240> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50b7e0> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50bce0> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50b240> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50ae80> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025cbd3240> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50a520> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a509b20> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50bba0> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50ad40> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c93a0> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a50bd80> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a509b20> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c9120> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c9300> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a509b20> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a54cc20> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c9120> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a509b20> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a54c220> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c9120> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a54d800> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a54d440> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c9120> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a54d580> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 15:53:26 15:53:26 cls = 15:53:26 func = . at 0x7f025a4c9120> 15:53:26 when = 'setup' 15:53:26 reraise = (, ) 15:53:26 15:53:26 @classmethod 15:53:26 def from_call( 15:53:26 cls, 15:53:26 func: Callable[[], TResult], 15:53:26 when: Literal["collect", "setup", "call", "teardown"], 15:53:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:26 ) -> CallInfo[TResult]: 15:53:26 """Call func, wrapping the result in a CallInfo. 15:53:26 15:53:26 :param func: 15:53:26 The function to call. Called without arguments. 15:53:26 :type func: Callable[[], _pytest.runner.TResult] 15:53:26 :param when: 15:53:26 The phase in which the function is called. 15:53:26 :param reraise: 15:53:26 Exception or exceptions that shall propagate if raised by the 15:53:26 function, instead of being wrapped in the CallInfo. 15:53:26 """ 15:53:26 excinfo = None 15:53:26 instant = timing.Instant() 15:53:26 try: 15:53:26 > result: TResult | None = func() 15:53:26 ^^^^^^ 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:26 lambda: runtest_hook(item=item, **kwds), 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:26 yield 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:26 return (yield) 15:53:26 ^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:26 item.session._setupstate.setup(item) 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:26 col.setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:26 super().setup() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:26 self._request._fillfixtures() 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:26 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:26 fixturedef = self._get_active_fixturedef(argname) 15:53:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:26 fixturedef.execute(request=subrequest) 15:53:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:26 15:53:26 self = 15:53:26 request = > 15:53:26 15:53:26 def execute(self, request: SubRequest) -> FixtureValue: 15:53:26 """Return the value of this fixture, executing it if not cached.""" 15:53:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:26 # This needs to be done before checking if we have a cached value, since 15:53:26 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:26 # parametrization, they finalize themselves and fixtures depending on it 15:53:26 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:26 # See #4871 15:53:26 requested_fixtures_that_should_finalize_us = [] 15:53:26 for argname in self.argnames: 15:53:26 fixturedef = request._get_active_fixturedef(argname) 15:53:26 # Saves requested fixtures in a list so we later can add our finalizer 15:53:26 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:26 # down first. This is generally handled by SetupState, but still currently 15:53:26 # needed when this fixture is not parametrized but depends on a parametrized 15:53:26 # fixture. 15:53:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:26 15:53:26 # Check for (and return) cached value/exception. 15:53:26 if self.cached_result is not None: 15:53:26 request_cache_key = self.cache_key(request) 15:53:26 cache_key = self.cached_result[1] 15:53:26 try: 15:53:26 # Attempt to make a normal == check: this might fail for objects 15:53:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:26 cache_hit = bool(request_cache_key == cache_key) 15:53:26 except (ValueError, RuntimeError): 15:53:26 # If the comparison raises, use 'is' as fallback. 15:53:26 cache_hit = request_cache_key is cache_key 15:53:26 15:53:26 if cache_hit: 15:53:26 if self.cached_result[2] is not None: 15:53:26 exc, exc_tb = self.cached_result[2] 15:53:26 raise exc.with_traceback(exc_tb) 15:53:26 else: 15:53:26 return self.cached_result[0] 15:53:26 # We have a previous but differently parametrized fixture instance 15:53:26 # so we need to tear it down before creating a new one. 15:53:26 self.finish(request) 15:53:26 assert self.cached_result is None 15:53:26 15:53:26 # Add finalizer to requested fixtures we saved previously. 15:53:26 # We make sure to do this after checking for cached value to avoid 15:53:26 # adding our finalizer multiple times. (#12135) 15:53:26 finalizer = functools.partial(self.finish, request=request) 15:53:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:26 parent_fixture.addfinalizer(finalizer) 15:53:26 15:53:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:26 # which is executed last. 15:53:26 > assert not self._finalizers 15:53:26 ^^^^^^^^^^^^^^^^^^^^ 15:53:26 E AssertionError 15:53:26 15:53:26 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:26 =========================== short test summary info ============================ 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 15:53:26 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 15:53:26 35 errors in 106.84s (0:01:46) 15:53:26 tests221: exit 1 (107.11 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5267 15:53:26 tests221: FAIL ✖ in 1 minute 53.78 seconds 15:53:26 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:53:27 tests71: freeze> python -m pip freeze --all 15:53:27 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:53:27 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 15:53:27 using environment variables from ./karaf71.env 15:53:27 pytest -q transportpce_tests/7.1/test01_portmapping.py 15:53:32 tests_hybrid: freeze> python -m pip freeze --all 15:53:32 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:53:32 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 15:53:32 using environment variables from ./karaf221.env 15:53:32 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 15:55:08 EEEEEEEEEEEE [100%] 15:55:10 ==================================== ERRORS ==================================== 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 15:55:10 15:55:10 cls = 15:55:10 15:55:10 @classmethod 15:55:10 def setUpClass(cls): 15:55:10 > cls.processes = test_utils.start_tpce() 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 15:55:10 transportpce_tests/7.1/test01_portmapping.py:32: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 def start_tpce(): 15:55:10 if 'NO_ODL_STARTUP' in os.environ: 15:55:10 print('No OpenDaylight instance to start!') 15:55:10 return [] 15:55:10 print('starting OpenDaylight...') 15:55:10 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:55:10 process = start_lighty() 15:55:10 else: 15:55:10 process = start_karaf() 15:55:10 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:55:10 print('OpenDaylight started !') 15:55:10 else: 15:55:10 print('OpenDaylight failed to start !') 15:55:10 shutdown_process(process) 15:55:10 for pid in process_list: 15:55:10 shutdown_process(pid) 15:55:10 > sys.exit(1) 15:55:10 E SystemExit: 1 15:55:10 15:55:10 transportpce_tests/common/test_utils.py:234: SystemExit 15:55:10 ---------------------------- Captured stdout setup ----------------------------- 15:55:10 starting OpenDaylight... 15:55:10 starting KARAF (karaf71) TransportPCE build... 15:55:10 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a022a0> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a03a60> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe271132e0> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a03a60> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a037e0> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a03880> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a036a0> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a00900> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a036a0> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a037e0> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 15:55:10 15:55:10 cls = 15:55:10 func = . at 0x7fbe24a00900> 15:55:10 when = 'setup' 15:55:10 reraise = (, ) 15:55:10 15:55:10 @classmethod 15:55:10 def from_call( 15:55:10 cls, 15:55:10 func: Callable[[], TResult], 15:55:10 when: Literal["collect", "setup", "call", "teardown"], 15:55:10 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:10 ) -> CallInfo[TResult]: 15:55:10 """Call func, wrapping the result in a CallInfo. 15:55:10 15:55:10 :param func: 15:55:10 The function to call. Called without arguments. 15:55:10 :type func: Callable[[], _pytest.runner.TResult] 15:55:10 :param when: 15:55:10 The phase in which the function is called. 15:55:10 :param reraise: 15:55:10 Exception or exceptions that shall propagate if raised by the 15:55:10 function, instead of being wrapped in the CallInfo. 15:55:10 """ 15:55:10 excinfo = None 15:55:10 instant = timing.Instant() 15:55:10 try: 15:55:10 > result: TResult | None = func() 15:55:10 ^^^^^^ 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:10 lambda: runtest_hook(item=item, **kwds), 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:10 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:10 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:10 yield 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:10 return (yield) 15:55:10 ^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:10 item.session._setupstate.setup(item) 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:10 col.setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:10 super().setup() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:10 self._request._fillfixtures() 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:10 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:10 fixturedef = self._get_active_fixturedef(argname) 15:55:10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:10 fixturedef.execute(request=subrequest) 15:55:10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:10 15:55:10 self = 15:55:10 request = > 15:55:10 15:55:10 def execute(self, request: SubRequest) -> FixtureValue: 15:55:10 """Return the value of this fixture, executing it if not cached.""" 15:55:10 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:10 # This needs to be done before checking if we have a cached value, since 15:55:10 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:10 # parametrization, they finalize themselves and fixtures depending on it 15:55:10 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:10 # See #4871 15:55:10 requested_fixtures_that_should_finalize_us = [] 15:55:10 for argname in self.argnames: 15:55:10 fixturedef = request._get_active_fixturedef(argname) 15:55:10 # Saves requested fixtures in a list so we later can add our finalizer 15:55:10 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:10 # down first. This is generally handled by SetupState, but still currently 15:55:10 # needed when this fixture is not parametrized but depends on a parametrized 15:55:10 # fixture. 15:55:10 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:10 15:55:10 # Check for (and return) cached value/exception. 15:55:10 if self.cached_result is not None: 15:55:10 request_cache_key = self.cache_key(request) 15:55:10 cache_key = self.cached_result[1] 15:55:10 try: 15:55:10 # Attempt to make a normal == check: this might fail for objects 15:55:10 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:10 cache_hit = bool(request_cache_key == cache_key) 15:55:10 except (ValueError, RuntimeError): 15:55:10 # If the comparison raises, use 'is' as fallback. 15:55:10 cache_hit = request_cache_key is cache_key 15:55:10 15:55:10 if cache_hit: 15:55:10 if self.cached_result[2] is not None: 15:55:10 exc, exc_tb = self.cached_result[2] 15:55:10 raise exc.with_traceback(exc_tb) 15:55:10 else: 15:55:10 return self.cached_result[0] 15:55:10 # We have a previous but differently parametrized fixture instance 15:55:10 # so we need to tear it down before creating a new one. 15:55:10 self.finish(request) 15:55:10 assert self.cached_result is None 15:55:10 15:55:10 # Add finalizer to requested fixtures we saved previously. 15:55:10 # We make sure to do this after checking for cached value to avoid 15:55:10 # adding our finalizer multiple times. (#12135) 15:55:10 finalizer = functools.partial(self.finish, request=request) 15:55:10 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:10 parent_fixture.addfinalizer(finalizer) 15:55:10 15:55:10 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:10 # which is executed last. 15:55:10 > assert not self._finalizers 15:55:10 ^^^^^^^^^^^^^^^^^^^^ 15:55:10 E AssertionError 15:55:10 15:55:10 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:10 =========================== short test summary info ============================ 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 15:55:10 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 15:55:10 12 errors in 102.26s (0:01:42) 15:55:10 tests71: exit 1 (102.55 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5398 15:55:13 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:55:22 ==================================== ERRORS ==================================== 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 15:55:22 15:55:22 cls = 15:55:22 15:55:22 @classmethod 15:55:22 def setUpClass(cls): 15:55:22 > cls.processes = test_utils.start_tpce() 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 15:55:22 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 def start_tpce(): 15:55:22 if 'NO_ODL_STARTUP' in os.environ: 15:55:22 print('No OpenDaylight instance to start!') 15:55:22 return [] 15:55:22 print('starting OpenDaylight...') 15:55:22 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:55:22 process = start_lighty() 15:55:22 else: 15:55:22 process = start_karaf() 15:55:22 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:55:22 print('OpenDaylight started !') 15:55:22 else: 15:55:22 print('OpenDaylight failed to start !') 15:55:22 shutdown_process(process) 15:55:22 for pid in process_list: 15:55:22 shutdown_process(pid) 15:55:22 > sys.exit(1) 15:55:22 E SystemExit: 1 15:55:22 15:55:22 transportpce_tests/common/test_utils.py:234: SystemExit 15:55:22 ---------------------------- Captured stdout setup ----------------------------- 15:55:22 starting OpenDaylight... 15:55:22 starting KARAF (karaf221) TransportPCE build... 15:55:22 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad16aca0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1bfe20> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83af866f20> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad169080> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad168f40> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad16aca0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83af866f20> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1be5c0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1be840> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad16aca0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d940> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1beb60> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad16aca0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9dda0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad169580> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9dda0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad169580> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad169580> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9e0c0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9e0c0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d440> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d940> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9da80> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d760> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9c900> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9ce00> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9c900> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9c9a0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d120> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9cfe0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9cfe0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9ea20> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d1c0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9d3a0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9c9a0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9e5c0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83ad1699e0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 15:55:22 15:55:22 cls = 15:55:22 func = . at 0x7f83acb9e2a0> 15:55:22 when = 'setup' 15:55:22 reraise = (, ) 15:55:22 15:55:22 @classmethod 15:55:22 def from_call( 15:55:22 cls, 15:55:22 func: Callable[[], TResult], 15:55:22 when: Literal["collect", "setup", "call", "teardown"], 15:55:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:22 ) -> CallInfo[TResult]: 15:55:22 """Call func, wrapping the result in a CallInfo. 15:55:22 15:55:22 :param func: 15:55:22 The function to call. Called without arguments. 15:55:22 :type func: Callable[[], _pytest.runner.TResult] 15:55:22 :param when: 15:55:22 The phase in which the function is called. 15:55:22 :param reraise: 15:55:22 Exception or exceptions that shall propagate if raised by the 15:55:22 function, instead of being wrapped in the CallInfo. 15:55:22 """ 15:55:22 excinfo = None 15:55:22 instant = timing.Instant() 15:55:22 try: 15:55:22 > result: TResult | None = func() 15:55:22 ^^^^^^ 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:22 lambda: runtest_hook(item=item, **kwds), 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:22 yield 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:22 return (yield) 15:55:22 ^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:22 item.session._setupstate.setup(item) 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:22 col.setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:22 super().setup() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:22 self._request._fillfixtures() 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:22 fixturedef = self._get_active_fixturedef(argname) 15:55:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:22 fixturedef.execute(request=subrequest) 15:55:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:22 15:55:22 self = 15:55:22 request = > 15:55:22 15:55:22 def execute(self, request: SubRequest) -> FixtureValue: 15:55:22 """Return the value of this fixture, executing it if not cached.""" 15:55:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:22 # This needs to be done before checking if we have a cached value, since 15:55:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:22 # parametrization, they finalize themselves and fixtures depending on it 15:55:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:22 # See #4871 15:55:22 requested_fixtures_that_should_finalize_us = [] 15:55:22 for argname in self.argnames: 15:55:22 fixturedef = request._get_active_fixturedef(argname) 15:55:22 # Saves requested fixtures in a list so we later can add our finalizer 15:55:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:22 # down first. This is generally handled by SetupState, but still currently 15:55:22 # needed when this fixture is not parametrized but depends on a parametrized 15:55:22 # fixture. 15:55:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:22 15:55:22 # Check for (and return) cached value/exception. 15:55:22 if self.cached_result is not None: 15:55:22 request_cache_key = self.cache_key(request) 15:55:22 cache_key = self.cached_result[1] 15:55:22 try: 15:55:22 # Attempt to make a normal == check: this might fail for objects 15:55:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:22 cache_hit = bool(request_cache_key == cache_key) 15:55:22 except (ValueError, RuntimeError): 15:55:22 # If the comparison raises, use 'is' as fallback. 15:55:22 cache_hit = request_cache_key is cache_key 15:55:22 15:55:22 if cache_hit: 15:55:22 if self.cached_result[2] is not None: 15:55:22 exc, exc_tb = self.cached_result[2] 15:55:22 raise exc.with_traceback(exc_tb) 15:55:22 else: 15:55:22 return self.cached_result[0] 15:55:22 # We have a previous but differently parametrized fixture instance 15:55:22 # so we need to tear it down before creating a new one. 15:55:22 self.finish(request) 15:55:22 assert self.cached_result is None 15:55:22 15:55:22 # Add finalizer to requested fixtures we saved previously. 15:55:22 # We make sure to do this after checking for cached value to avoid 15:55:22 # adding our finalizer multiple times. (#12135) 15:55:22 finalizer = functools.partial(self.finish, request=request) 15:55:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:22 parent_fixture.addfinalizer(finalizer) 15:55:22 15:55:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:22 # which is executed last. 15:55:22 > assert not self._finalizers 15:55:22 ^^^^^^^^^^^^^^^^^^^^ 15:55:22 E AssertionError 15:55:22 15:55:22 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:22 =========================== short test summary info ============================ 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 15:55:22 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 15:55:22 51 errors in 109.75s (0:01:49) 15:55:22 tests71: FAIL ✖ in 1 minute 48.91 seconds 15:55:22 tests_hybrid: exit 1 (110.04 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5414 15:55:22 buildcontroller: FAIL code 1 (8.38=setup[7.91]+cmd[0.47] seconds) 15:55:22 sims: OK (10.42=setup[6.87]+cmd[3.55] seconds) 15:55:22 testsPCE: FAIL code 1 (169.75=setup[45.70]+cmd[124.04] seconds) 15:55:22 build_karaf_tests221: FAIL code 127 (6.74=setup[6.74]+cmd[0.00] seconds) 15:55:22 tests_tapi: FAIL code 1 (116.21=setup[6.55]+cmd[109.66] seconds) 15:55:22 tests221: FAIL code 1 (113.78=setup[6.67]+cmd[107.11] seconds) 15:55:22 build_karaf_tests71: FAIL code 127 (6.68=setup[6.67]+cmd[0.01] seconds) 15:55:22 tests71: FAIL code 1 (108.91=setup[6.36]+cmd[102.55] seconds) 15:55:22 build_karaf_tests200: FAIL code 127 (6.47=setup[6.46]+cmd[0.00] seconds) 15:55:22 tests200: FAIL code 1 (108.94=setup[6.79]+cmd[102.15] seconds) 15:55:22 tests_hybrid: FAIL code 1 (116.53=setup[6.49]+cmd[110.04] seconds) 15:55:22 buildlighty: FAIL code 9 (6.35=setup[6.34]+cmd[0.01] seconds) 15:55:22 docs: OK (16.81=setup[14.33]+cmd[2.48] seconds) 15:55:22 docs-linkcheck: OK (17.32=setup[13.95]+cmd[3.36] seconds) 15:55:22 checkbashisms: OK (3.08=setup[1.91]+cmd[0.01,0.04,1.13] seconds) 15:55:22 pre-commit: OK (56.13=setup[2.74]+cmd[0.01,0.00,45.07,8.31] seconds) 15:55:22 pylint: FAIL code 1 (21.14=setup[3.14]+cmd[18.00] seconds) 15:55:22 evaluation failed :( (546.34 seconds) 15:55:22 + tox_status=1 15:55:22 + echo '---> Completed tox runs' 15:55:22 ---> Completed tox runs 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/build_karaf_tests200/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=build_karaf_tests200 15:55:22 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/build_karaf_tests221/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=build_karaf_tests221 15:55:22 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/build_karaf_tests71/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=build_karaf_tests71 15:55:22 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/buildcontroller/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=buildcontroller 15:55:22 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/buildlighty/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=buildlighty 15:55:22 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/checkbashisms/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=checkbashisms 15:55:22 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/docs-linkcheck/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=docs-linkcheck 15:55:22 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/docs/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=docs 15:55:22 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/pre-commit/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=pre-commit 15:55:22 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/pylint/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=pylint 15:55:22 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/sims/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=sims 15:55:22 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/tests200/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=tests200 15:55:22 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/tests221/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=tests221 15:55:22 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/tests71/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=tests71 15:55:22 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/testsPCE/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=testsPCE 15:55:22 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/tests_hybrid/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=tests_hybrid 15:55:22 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 15:55:22 + for i in .tox/*/log 15:55:22 ++ echo .tox/tests_tapi/log 15:55:22 ++ awk -F/ '{print $2}' 15:55:22 + tox_env=tests_tapi 15:55:22 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 15:55:22 + DOC_DIR=docs/_build/html 15:55:22 + [[ -d docs/_build/html ]] 15:55:22 + echo '---> Archiving generated docs' 15:55:22 ---> Archiving generated docs 15:55:22 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:55:22 + echo '---> tox-run.sh ends' 15:55:22 ---> tox-run.sh ends 15:55:22 + test 1 -eq 0 15:55:22 + exit 1 15:55:22 ++ '[' 1 = 1 ']' 15:55:22 ++ '[' -x /usr/bin/clear_console ']' 15:55:22 ++ /usr/bin/clear_console -q 15:55:22 Build step 'Execute shell' marked build as failure 15:55:22 $ ssh-agent -k 15:55:22 unset SSH_AUTH_SOCK; 15:55:22 unset SSH_AGENT_PID; 15:55:22 echo Agent pid 1572 killed; 15:55:22 [ssh-agent] Stopped. 15:55:23 [PostBuildScript] - [INFO] Executing post build scripts. 15:55:23 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2723601638235475782.sh 15:55:23 ---> sysstat.sh 15:55:23 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7243377724170281868.sh 15:55:23 ---> package-listing.sh 15:55:23 + '[' -f /etc/os-release ']' 15:55:23 + . /etc/os-release 15:55:23 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 15:55:23 ++ NAME=Ubuntu 15:55:23 ++ VERSION_ID=22.04 15:55:23 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 15:55:23 ++ VERSION_CODENAME=jammy 15:55:23 ++ ID=ubuntu 15:55:23 ++ ID_LIKE=debian 15:55:23 ++ HOME_URL=https://www.ubuntu.com/ 15:55:23 ++ SUPPORT_URL=https://help.ubuntu.com/ 15:55:23 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 15:55:23 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 15:55:23 ++ UBUNTU_CODENAME=jammy 15:55:23 + case " ${ID:-} ${ID_LIKE:-} " in 15:55:23 + OS_FAMILY=debian 15:55:23 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 15:55:23 + START_PACKAGES=/tmp/packages_start.txt 15:55:23 + END_PACKAGES=/tmp/packages_end.txt 15:55:23 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:55:23 + PACKAGES=/tmp/packages_start.txt 15:55:23 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:55:23 + PACKAGES=/tmp/packages_end.txt 15:55:23 + case "${OS_FAMILY}" in 15:55:23 + dpkg -l 15:55:23 + grep '^ii' 15:55:23 + '[' -f /tmp/packages_start.txt ']' 15:55:23 + '[' -f /tmp/packages_end.txt ']' 15:55:23 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:55:23 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:55:23 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:55:23 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:55:23 + exit 0 15:55:23 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins367776188602329194.sh 15:55:23 ---> capture-instance-metadata.sh 15:55:23 Setup pyenv: 15:55:23 system 15:55:23 3.8.20 15:55:23 3.9.20 15:55:23 3.10.15 15:55:23 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:23 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nsc0 from file:/tmp/.os_lf_venv 15:55:23 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:25 lf-activate-venv(): INFO: Installing additional packages: lftools 15:55:35 lf-activate-venv(): INFO: Adding /tmp/venv-nsc0/bin to PATH 15:55:35 INFO: Running in OpenStack, capturing instance metadata 15:55:35 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13270304119000115218.sh 15:55:35 provisioning config files... 15:55:36 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6137 15:55:36 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config8183666500239981889tmp 15:55:36 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 15:55:36 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 15:55:36 provisioning config files... 15:55:36 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 15:55:36 [EnvInject] - Injecting environment variables from a build step. 15:55:36 [EnvInject] - Injecting as environment variables the properties content 15:55:36 SERVER_ID=logs 15:55:36 15:55:36 [EnvInject] - Variables injected successfully. 15:55:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3403525744978890987.sh 15:55:36 ---> create-netrc.sh 15:55:36 WARN: Log server credential not found. 15:55:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13320514054592550317.sh 15:55:36 ---> python-tools-install.sh 15:55:36 Setup pyenv: 15:55:36 system 15:55:36 3.8.20 15:55:36 3.9.20 15:55:36 3.10.15 15:55:36 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nsc0 from file:/tmp/.os_lf_venv 15:55:37 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:38 lf-activate-venv(): INFO: Installing additional packages: lftools 15:55:48 lf-activate-venv(): INFO: Adding /tmp/venv-nsc0/bin to PATH 15:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins5706851953259602983.sh 15:55:48 ---> uv-install.sh 15:55:48 uv 0.12.23 is already installed 15:55:48 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins15064317343512809578.sh 15:55:48 ---> sudo-logs.sh 15:55:48 Archiving 'sudo' log.. 15:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4947617163666752573.sh 15:55:48 ---> job-cost.sh 15:55:48 INFO: Activating Python virtual environment... 15:55:48 Setup pyenv: 15:55:48 system 15:55:48 3.8.20 15:55:48 3.9.20 15:55:48 3.10.15 15:55:48 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:48 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nsc0 from file:/tmp/.os_lf_venv 15:55:48 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:50 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 15:55:57 lf-activate-venv(): INFO: Adding /tmp/venv-nsc0/bin to PATH 15:55:57 INFO: No stack-cost file found 15:55:57 INFO: Instance uptime: 716s 15:55:57 INFO: Fetching instance metadata (attempt 1 of 3)... 15:55:57 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 15:55:58 INFO: Successfully fetched instance metadata 15:55:58 INFO: Instance type: v3-standard-4 15:55:58 INFO: Retrieving pricing info for: v3-standard-4 15:55:58 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 15:55:58 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=716 15:55:58 INFO: Successfully fetched Vexxhost pricing API 15:55:58 INFO: Retrieved cost: 0.11 15:55:58 INFO: Retrieved resource: v3-standard-4 15:55:58 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 15:55:58 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 15:55:58 INFO: Successfully archived job cost data 15:55:58 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6137,2026-10-06 15:55:58,v3-standard-4,716,0.11,0.00,FAILURE 15:55:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins12146761834604701318.sh 15:55:58 ---> logs-deploy.sh 15:55:58 Setup pyenv: 15:55:58 system 15:55:58 3.8.20 15:55:58 3.9.20 15:55:58 3.10.15 15:55:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:58 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nsc0 from file:/tmp/.os_lf_venv 15:55:58 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:56:00 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 15:56:09 lf-activate-venv(): INFO: Adding /tmp/venv-nsc0/bin to PATH 15:56:09 WARNING: Nexus logging server not set 15:56:09 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6137/ 15:56:09 INFO: archiving logs to S3 15:56:10 ---> uname -a: 15:56:10 Linux prd-ubuntu2204-docker-4c-16g-62476 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:56:10 15:56:10 15:56:10 ---> lscpu: 15:56:10 Architecture: x86_64 15:56:10 CPU op-mode(s): 32-bit, 64-bit 15:56:10 Address sizes: 40 bits physical, 48 bits virtual 15:56:10 Byte Order: Little Endian 15:56:10 CPU(s): 4 15:56:10 On-line CPU(s) list: 0-3 15:56:10 Vendor ID: AuthenticAMD 15:56:10 Model name: AMD EPYC-Rome Processor 15:56:10 CPU family: 23 15:56:10 Model: 49 15:56:10 Thread(s) per core: 1 15:56:10 Core(s) per socket: 1 15:56:10 Socket(s): 4 15:56:10 Stepping: 0 15:56:10 BogoMIPS: 5600.00 15:56:10 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:56:10 Virtualization: AMD-V 15:56:10 Hypervisor vendor: KVM 15:56:10 Virtualization type: full 15:56:10 L1d cache: 128 KiB (4 instances) 15:56:10 L1i cache: 128 KiB (4 instances) 15:56:10 L2 cache: 2 MiB (4 instances) 15:56:10 L3 cache: 64 MiB (4 instances) 15:56:10 NUMA node(s): 1 15:56:10 NUMA node0 CPU(s): 0-3 15:56:10 Vulnerability Gather data sampling: Not affected 15:56:10 Vulnerability Indirect target selection: Not affected 15:56:10 Vulnerability Itlb multihit: Not affected 15:56:10 Vulnerability L1tf: Not affected 15:56:10 Vulnerability Mds: Not affected 15:56:10 Vulnerability Meltdown: Not affected 15:56:10 Vulnerability Mmio stale data: Not affected 15:56:10 Vulnerability Reg file data sampling: Not affected 15:56:10 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 15:56:10 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 15:56:10 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 15:56:10 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 15:56:10 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 15:56:10 Vulnerability Srbds: Not affected 15:56:10 Vulnerability Tsa: Not affected 15:56:10 Vulnerability Tsx async abort: Not affected 15:56:10 Vulnerability Vmscape: Not affected 15:56:10 15:56:10 15:56:10 ---> nproc: 15:56:10 4 15:56:10 15:56:10 15:56:10 ---> df -h: 15:56:10 Filesystem Size Used Avail Use% Mounted on 15:56:10 tmpfs 1.6G 1.1M 1.6G 1% /run 15:56:10 /dev/vda1 78G 11G 67G 15% / 15:56:10 tmpfs 7.9G 0 7.9G 0% /dev/shm 15:56:10 tmpfs 5.0M 0 5.0M 0% /run/lock 15:56:10 /dev/vda15 105M 6.1M 99M 6% /boot/efi 15:56:10 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 15:56:10 15:56:10 15:56:10 ---> free -m: 15:56:10 total used free shared buff/cache available 15:56:10 Mem: 15989 711 9534 4 5743 14934 15:56:10 Swap: 1023 0 1023 15:56:10 15:56:10 15:56:10 ---> ip addr: 15:56:10 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 15:56:10 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 15:56:10 inet 127.0.0.1/8 scope host lo 15:56:10 valid_lft forever preferred_lft forever 15:56:10 inet6 ::1/128 scope host 15:56:10 valid_lft forever preferred_lft forever 15:56:10 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 15:56:10 link/ether fa:16:3e:26:78:7a brd ff:ff:ff:ff:ff:ff 15:56:10 altname enp0s3 15:56:10 inet 10.30.171.148/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 15:56:10 valid_lft 85680sec preferred_lft 85680sec 15:56:10 inet6 fe80::f816:3eff:fe26:787a/64 scope link 15:56:10 valid_lft forever preferred_lft forever 15:56:10 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 15:56:10 link/ether 5a:09:de:ec:d7:db brd ff:ff:ff:ff:ff:ff 15:56:10 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 15:56:10 valid_lft forever preferred_lft forever 15:56:10 inet6 fe80::5809:deff:feec:d7db/64 scope link 15:56:10 valid_lft forever preferred_lft forever 15:56:10 15:56:10 15:56:10 ---> sar -b -r -n DEV: 15:56:10 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62476) 10/06/26 _x86_64_ (4 CPU) 15:56:10 15:56:10 15:44:12 LINUX RESTART (4 CPU) 15:56:10 15:56:10 15:56:10 ---> sar -P ALL: 15:56:10 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62476) 10/06/26 _x86_64_ (4 CPU) 15:56:10 15:56:10 15:44:12 LINUX RESTART (4 CPU) 15:56:10 15:56:10 15:56:10