14:43:23 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125773 14:43:23 Running as SYSTEM 14:43:23 [EnvInject] - Loading node environment variables. 14:43:23 Building remotely on prd-ubuntu2204-docker-4c-16g-20 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-vanadium 14:43:24 [ssh-agent] Looking for ssh-agent implementation... 14:43:25 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:43:25 $ ssh-agent 14:43:25 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXKRbrtj/agent.1556 14:43:25 SSH_AGENT_PID=1558 14:43:25 [ssh-agent] Started. 14:43:25 Running ssh-add (command line suppressed) 14:43:25 Identity added: /w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_12188345451057604570.key (/w/workspace/transportpce-tox-verify-vanadium@tmp/private_key_12188345451057604570.key) 14:43:25 [ssh-agent] Using credentials jenkins (jenkins-ssh) 14:43:25 The recommended git tool is: NONE 14:43:27 using credential jenkins-ssh 14:43:33 Wiping out workspace first. 14:43:33 Cloning the remote Git repository 14:43:33 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 14:43:33 > git init /w/workspace/transportpce-tox-verify-vanadium # timeout=10 14:43:33 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:43:33 > git --version # timeout=10 14:43:33 > git --version # 'git version 2.34.1' 14:43:33 using GIT_SSH to set credentials jenkins-ssh 14:43:33 Verifying host key using known hosts file, will automatically accept unseen keys 14:43:33 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 14:43:39 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:43:39 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 14:43:39 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 14:43:39 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 14:43:39 using GIT_SSH to set credentials jenkins-ssh 14:43:39 Verifying host key using known hosts file, will automatically accept unseen keys 14:43:39 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/73/125773/1 # timeout=10 14:43:40 > git rev-parse 2ede3cbad5095d16464a9fcb015b396d10904fa7^{commit} # timeout=10 14:43:40 Checking out Revision 2ede3cbad5095d16464a9fcb015b396d10904fa7 (refs/changes/73/125773/1) 14:43:40 > git config core.sparsecheckout # timeout=10 14:43:40 > git checkout -f 2ede3cbad5095d16464a9fcb015b396d10904fa7 # timeout=10 14:43:40 Commit message: "Bump upstreams dependencies to V-SR2" 14:43:40 > git rev-parse FETCH_HEAD^{commit} # timeout=10 14:43:40 > git rev-list --no-walk e0be7933ea89d92f4724cd5d3fa2fac7c18a7c20 # timeout=10 14:43:40 > git remote # timeout=10 14:43:40 > git submodule init # timeout=10 14:43:40 > git submodule sync # timeout=10 14:43:40 > git config --get remote.origin.url # timeout=10 14:43:40 > git submodule init # timeout=10 14:43:40 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 14:43:40 ERROR: No submodules found. 14:43:44 provisioning config files... 14:43:44 copy managed file [npmrc] to file:/home/jenkins/.npmrc 14:43:44 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 14:43:44 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins540949868852535032.sh 14:43:44 ---> python-tools-install.sh 14:43:44 Setup pyenv: 14:43:44 * system (set by /opt/pyenv/version) 14:43:44 * 3.8.20 (set by /opt/pyenv/version) 14:43:44 * 3.9.20 (set by /opt/pyenv/version) 14:43:44 3.10.15 14:43:44 3.11.10 14:43:49 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-3CtA 14:43:49 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 14:43:49 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:43:53 lf-activate-venv(): INFO: Installing additional packages: lftools 14:44:18 lf-activate-venv(): INFO: Adding /tmp/venv-3CtA/bin to PATH 14:44:18 Generating Requirements File 14:44:44 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 14:44:44 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 14:44:44 Python 3.11.10 14:44:44 pip 26.2.1 from /tmp/venv-3CtA/lib/python3.11/site-packages/pip (python 3.11) 14:44:45 aiohappyeyeballs==2.7.1 14:44:45 aiohttp==3.14.3 14:44:45 aiosignal==1.4.0 14:44:45 appdirs==1.4.4 14:44:45 argcomplete==3.7.2 14:44:45 aspy.yaml==1.3.0 14:44:45 attrs==26.1.0 14:44:45 autopage==0.6.0 14:44:45 beautifulsoup4==4.15.0 14:44:45 boto3==1.43.88 14:44:45 botocore==1.43.88 14:44:45 bs4==0.0.2 14:44:45 certifi==2026.7.22 14:44:45 cffi==2.1.1 14:44:45 cfgv==3.5.0 14:44:45 chardet==7.6.0 14:44:45 charset-normalizer==3.5.1 14:44:45 click==8.5.0 14:44:45 cliff==4.16.0 14:44:45 cmd2==4.2.3 14:44:45 cryptography==3.3.2 14:44:45 debtcollector==3.1.0 14:44:45 decorator==5.3.1 14:44:45 defusedxml==0.7.1 14:44:45 Deprecated==1.3.1 14:44:45 distlib==0.4.3 14:44:45 dnspython==2.8.0 14:44:45 docker==7.2.0 14:44:45 dogpile.cache==1.5.0 14:44:45 durationpy==0.11 14:44:45 email-validator==2.3.0 14:44:45 filelock==3.32.5 14:44:45 frozenlist==1.8.0 14:44:45 future==1.0.0 14:44:45 gitdb==4.0.12 14:44:45 GitPython==3.1.61 14:44:45 httplib2==0.30.2 14:44:45 identify==2.6.19 14:44:45 idna==3.19 14:44:45 importlib-resources==1.5.0 14:44:45 iso8601==2.1.0 14:44:45 Jinja2==3.1.6 14:44:45 jmespath==1.1.0 14:44:45 jsonpatch==1.33 14:44:45 jsonpointer==3.1.1 14:44:45 jsonschema==4.26.0 14:44:45 jsonschema-specifications==2025.9.1 14:44:45 keystoneauth1==5.17.0 14:44:45 kubernetes==36.0.3 14:44:45 lftools==0.37.23 14:44:45 lxml==6.1.3 14:44:45 markdown-it-py==4.2.0 14:44:45 MarkupSafe==3.0.3 14:44:45 mdurl==0.1.2 14:44:45 msgpack==1.2.2 14:44:45 multi_key_dict==2.0.3 14:44:45 multidict==6.7.1 14:44:45 munch==4.0.0 14:44:45 netaddr==1.3.0 14:44:45 niet==1.4.2 14:44:45 nodeenv==1.10.0 14:44:45 oauth2client==4.1.3 14:44:45 oauthlib==3.3.1 14:44:45 openstacksdk==4.20.0 14:44:45 os-service-types==1.9.0 14:44:45 osc-lib==4.7.0 14:44:45 oslo.config==10.7.0 14:44:45 oslo.context==6.5.0 14:44:45 oslo.i18n==6.9.0 14:44:45 oslo.log==8.3.1 14:44:45 oslo.serialization==5.11.0 14:44:45 oslo.utils==10.2.0 14:44:45 packaging==26.3 14:44:45 pbr==7.0.3 14:44:45 platformdirs==4.11.7 14:44:45 prettytable==3.18.0 14:44:45 prompt_toolkit==3.0.53 14:44:45 propcache==0.5.2 14:44:45 psutil==7.2.2 14:44:45 pyasn1==0.6.4 14:44:45 pyasn1_modules==0.4.2 14:44:45 pycparser==3.0 14:44:45 pygerrit2==2.0.15 14:44:45 PyGithub==2.10.0 14:44:45 Pygments==2.21.0 14:44:45 PyJWT==2.13.0 14:44:45 PyNaCl==1.6.2 14:44:45 pyparsing==2.4.7 14:44:45 pyperclip==1.11.0 14:44:45 pyrsistent==0.20.0 14:44:45 python-dateutil==2.9.0.post0 14:44:45 python-discovery==1.6.0 14:44:45 python-heatclient==5.3.0 14:44:45 python-jenkins==1.8.3 14:44:45 python-keystoneclient==6.0.0 14:44:45 python-magnumclient==5.0.0 14:44:45 python-manilaclient==6.3.0 14:44:45 python-openstackclient==10.3.0 14:44:45 python-swiftclient==4.11.0 14:44:45 PyYAML==6.0.3 14:44:45 referencing==0.37.0 14:44:45 requests==2.34.2 14:44:45 requests-oauthlib==2.0.0 14:44:45 rfc3986==2.0.0 14:44:45 rich==15.0.0 14:44:45 rich-argparse==1.8.0 14:44:45 rpds-py==2026.6.3 14:44:45 rsa==4.9.1 14:44:45 ruamel.yaml==0.19.1 14:44:45 ruamel.yaml.clib==0.2.15 14:44:45 s3transfer==0.19.2 14:44:45 simplejson==4.1.2 14:44:45 six==1.17.0 14:44:45 smmap==5.0.3 14:44:45 soupsieve==2.9.2 14:44:45 stevedore==5.9.1 14:44:45 tabulate==0.10.0 14:44:45 toml==0.10.2 14:44:45 tomlkit==0.15.1 14:44:45 tqdm==4.70.0 14:44:45 typing_extensions==4.16.0 14:44:45 urllib3==1.26.20 14:44:45 virtualenv==21.7.8 14:44:45 wcwidth==0.8.3 14:44:45 websocket-client==1.9.2 14:44:45 wrapt==2.4.0 14:44:45 xdg==6.0.0 14:44:45 xmltodict==1.0.4 14:44:45 yarl==1.24.5 14:44:45 yq==4.1.2 14:44:45 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins10863737335674681528.sh 14:44:45 ---> uv-install.sh 14:44:45 Installing uv/uvx (latest) using shell installer 14:44:45 2026-09-04 14:44:45 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71225/71225] -> "/tmp/uv-install-yQYtGX.sh" [1] 14:44:45 downloading uv 0.12.9 x86_64-unknown-linux-gnu 14:44:46 installing to /home/jenkins/.local/bin 14:44:46 uv 14:44:46 uvx 14:44:46 everything's installed! 14:44:46 14:44:46 To add $HOME/.local/bin to your PATH, either restart your shell or run: 14:44:46 14:44:46 source $HOME/.local/bin/env (sh, bash, zsh) 14:44:46 source $HOME/.local/bin/env.fish (fish) 14:44:46 Adding install location to PATH 14:44:46 ---> Validating uv/uvx install 14:44:46 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:44:46 [EnvInject] - Injecting environment variables from a build step. 14:44:46 [EnvInject] - Injecting as environment variables the properties content 14:44:46 PYTHON=python3 14:44:46 14:44:46 [EnvInject] - Variables injected successfully. 14:44:46 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins12976364340371871619.sh 14:44:46 ---> tox-install.sh 14:44:46 + source /home/jenkins/lf-env.sh 14:44:46 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:46 ++ mktemp -d /tmp/venv-XXXX 14:44:46 + lf_venv=/tmp/venv-EVPU 14:44:46 + local venv_file=/tmp/.os_lf_venv 14:44:46 + local python=python3 14:44:46 + local options 14:44:46 + local set_path=true 14:44:46 + local install_args= 14:44:46 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:46 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:46 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:46 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:44:46 + true 14:44:46 + case $1 in 14:44:46 + venv_file=/tmp/.toxenv 14:44:46 + shift 2 14:44:46 + true 14:44:46 + case $1 in 14:44:46 + shift 14:44:46 + break 14:44:46 + case $python in 14:44:46 + local pkg_list= 14:44:46 + [[ -d /opt/pyenv ]] 14:44:46 + echo 'Setup pyenv:' 14:44:46 Setup pyenv: 14:44:46 + export PYENV_ROOT=/opt/pyenv 14:44:46 + PYENV_ROOT=/opt/pyenv 14:44:46 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:44:46 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:44:46 + pyenv versions 14:44:46 system 14:44:46 3.8.20 14:44:46 3.9.20 14:44:46 3.10.15 14:44:46 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:44:46 + command -v pyenv 14:44:46 ++ pyenv init - --no-rehash 14:44:46 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:44:46 for i in ${!paths[@]}; do 14:44:46 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:44:46 fi; done; 14:44:46 echo "${paths[*]}"'\'')" 14:44:46 export PATH="/opt/pyenv/shims:${PATH}" 14:44:46 export PYENV_SHELL=bash 14:44:46 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:44:46 pyenv() { 14:44:46 local command 14:44:46 command="${1:-}" 14:44:46 if [ "$#" -gt 0 ]; then 14:44:46 shift 14:44:46 fi 14:44:46 14:44:46 case "$command" in 14:44:46 rehash|shell) 14:44:46 eval "$(pyenv "sh-$command" "$@")" 14:44:46 ;; 14:44:46 *) 14:44:46 command pyenv "$command" "$@" 14:44:46 ;; 14:44:46 esac 14:44:46 }' 14:44:46 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:44:46 for i in ${!paths[@]}; do 14:44:46 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:44:46 fi; done; 14:44:46 echo "${paths[*]}"' 14:44:46 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:44:46 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:44:46 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 14:44:46 ++ export PYENV_SHELL=bash 14:44:46 ++ PYENV_SHELL=bash 14:44:46 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:44:46 +++ complete -F _pyenv pyenv 14:44:46 ++ lf-pyver python3 14:44:46 ++ local py_version_xy=python3 14:44:46 ++ local py_version_xyz= 14:44:46 ++ sed 's/^[ *]* //' 14:44:46 ++ grep -E '^[0-9.]*[0-9]$' 14:44:46 ++ awk '{ print $1 }' 14:44:46 ++ pyenv versions 14:44:46 ++ local command 14:44:46 ++ command=versions 14:44:46 ++ '[' 1 -gt 0 ']' 14:44:46 ++ shift 14:44:46 ++ case "$command" in 14:44:46 ++ command pyenv versions 14:44:46 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:44:46 +++ grep '^3' /tmp/.pyenv_versions 14:44:46 +++ sort -V 14:44:46 +++ tail -n 1 14:44:46 ++ py_version_xyz=3.11.10 14:44:46 ++ [[ -z 3.11.10 ]] 14:44:46 ++ echo 3.11.10 14:44:46 ++ return 0 14:44:46 + pyenv local 3.11.10 14:44:46 + local command 14:44:46 + command=local 14:44:46 + '[' 2 -gt 0 ']' 14:44:46 + shift 14:44:46 + case "$command" in 14:44:46 + command pyenv local 3.11.10 14:44:46 + for arg in "$@" 14:44:46 + case $arg in 14:44:46 + pkg_list+='tox ' 14:44:46 + for arg in "$@" 14:44:46 + case $arg in 14:44:46 + pkg_list+='virtualenv ' 14:44:46 + for arg in "$@" 14:44:46 + case $arg in 14:44:46 + pkg_list+='urllib3~=1.26.15 ' 14:44:46 + [[ -f /tmp/.toxenv ]] 14:44:46 + [[ ! -f /tmp/.toxenv ]] 14:44:46 + [[ -n '' ]] 14:44:46 + python3 -m venv /tmp/venv-EVPU 14:44:50 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-EVPU' 14:44:50 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-EVPU 14:44:50 + echo /tmp/venv-EVPU 14:44:50 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 14:44:50 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 14:44:50 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:44:50 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:44:50 + local 'pip_opts=--upgrade --quiet' 14:44:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:44:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:44:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:44:50 + [[ -n '' ]] 14:44:50 + [[ -n '' ]] 14:44:50 + lf-venv-pip-install /tmp/venv-EVPU/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:44:50 + local venv_python=/tmp/venv-EVPU/bin/python3 14:44:50 + shift 14:44:50 + local upstream=https://pypi.org/simple 14:44:50 + /tmp/venv-EVPU/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 14:44:54 + return 0 14:44:54 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:44:54 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:44:54 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:44:54 + lf-venv-pip-install /tmp/venv-EVPU/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 14:44:54 + local venv_python=/tmp/venv-EVPU/bin/python3 14:44:54 + shift 14:44:54 + local upstream=https://pypi.org/simple 14:44:54 + /tmp/venv-EVPU/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 14:44:56 + return 0 14:44:56 + type python3 14:44:56 + true 14:44:56 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-EVPU/bin to PATH' 14:44:56 lf-activate-venv(): INFO: Adding /tmp/venv-EVPU/bin to PATH 14:44:56 + PATH=/tmp/venv-EVPU/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 14:44:56 + return 0 14:44:56 + python3 --version 14:44:56 Python 3.11.10 14:44:56 + python3 -m pip --version 14:44:56 pip 26.2.1 from /tmp/venv-EVPU/lib/python3.11/site-packages/pip (python 3.11) 14:44:56 + python3 -m pip freeze 14:44:56 cachetools==7.1.8 14:44:56 colorama==0.4.6 14:44:56 distlib==0.4.3 14:44:56 filelock==3.32.5 14:44:56 packaging==26.3 14:44:56 platformdirs==4.11.7 14:44:56 pluggy==1.6.0 14:44:56 pyproject-api==1.11.0 14:44:56 python-discovery==1.6.0 14:44:56 tomli_w==1.2.0 14:44:56 tox==4.61.2 14:44:56 typing_extensions==4.16.0 14:44:56 urllib3==1.26.20 14:44:56 virtualenv==21.7.8 14:44:56 [transportpce-tox-verify-vanadium] $ /bin/sh -xe /tmp/jenkins16849831583547923384.sh 14:44:56 [EnvInject] - Injecting environment variables from a build step. 14:44:56 [EnvInject] - Injecting as environment variables the properties content 14:44:56 PARALLEL=True 14:44:56 14:44:56 [EnvInject] - Variables injected successfully. 14:44:56 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins6662333505208333275.sh 14:44:56 ---> tox-run.sh 14:44:56 + 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 14:44:56 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:44:56 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:44:56 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/tox 14:44:56 + cd /w/workspace/transportpce-tox-verify-vanadium/. 14:44:56 + source /home/jenkins/lf-env.sh 14:44:56 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 14:44:56 ++ mktemp -d /tmp/venv-XXXX 14:44:56 + lf_venv=/tmp/venv-cYFj 14:44:56 + local venv_file=/tmp/.os_lf_venv 14:44:56 + local python=python3 14:44:56 + local options 14:44:56 + local set_path=true 14:44:56 + local install_args= 14:44:56 ++ 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 14:44:56 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:56 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 14:44:56 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 14:44:56 + true 14:44:56 + case $1 in 14:44:56 + venv_file=/tmp/.toxenv 14:44:56 + shift 2 14:44:56 + true 14:44:56 + case $1 in 14:44:56 + shift 14:44:56 + break 14:44:56 + case $python in 14:44:56 + local pkg_list= 14:44:56 + [[ -d /opt/pyenv ]] 14:44:56 + echo 'Setup pyenv:' 14:44:56 Setup pyenv: 14:44:56 + export PYENV_ROOT=/opt/pyenv 14:44:56 + PYENV_ROOT=/opt/pyenv 14:44:56 + 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 14:44:56 + 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 14:44:56 + pyenv versions 14:44:56 system 14:44:56 3.8.20 14:44:56 3.9.20 14:44:56 3.10.15 14:44:56 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:44:56 + command -v pyenv 14:44:56 ++ pyenv init - --no-rehash 14:44:56 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 14:44:56 for i in ${!paths[@]}; do 14:44:56 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 14:44:56 fi; done; 14:44:56 echo "${paths[*]}"'\'')" 14:44:56 export PATH="/opt/pyenv/shims:${PATH}" 14:44:56 export PYENV_SHELL=bash 14:44:56 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 14:44:56 pyenv() { 14:44:56 local command 14:44:56 command="${1:-}" 14:44:56 if [ "$#" -gt 0 ]; then 14:44:56 shift 14:44:56 fi 14:44:56 14:44:56 case "$command" in 14:44:56 rehash|shell) 14:44:56 eval "$(pyenv "sh-$command" "$@")" 14:44:56 ;; 14:44:56 *) 14:44:56 command pyenv "$command" "$@" 14:44:56 ;; 14:44:56 esac 14:44:56 }' 14:44:56 +++ bash --norc -ec 'IFS=:; paths=($PATH); 14:44:56 for i in ${!paths[@]}; do 14:44:56 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 14:44:56 fi; done; 14:44:56 echo "${paths[*]}"' 14:44:56 ++ 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 14:44:56 ++ 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 14:44:56 ++ 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 14:44:56 ++ export PYENV_SHELL=bash 14:44:56 ++ PYENV_SHELL=bash 14:44:56 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 14:44:56 +++ complete -F _pyenv pyenv 14:44:56 ++ lf-pyver python3 14:44:56 ++ local py_version_xy=python3 14:44:56 ++ local py_version_xyz= 14:44:56 ++ pyenv versions 14:44:56 ++ local command 14:44:56 ++ command=versions 14:44:56 ++ '[' 1 -gt 0 ']' 14:44:56 ++ shift 14:44:56 ++ case "$command" in 14:44:56 ++ command pyenv versions 14:44:56 ++ awk '{ print $1 }' 14:44:56 ++ sed 's/^[ *]* //' 14:44:56 ++ grep -E '^[0-9.]*[0-9]$' 14:44:56 ++ [[ ! -s /tmp/.pyenv_versions ]] 14:44:56 +++ grep '^3' /tmp/.pyenv_versions 14:44:56 +++ sort -V 14:44:56 +++ tail -n 1 14:44:56 ++ py_version_xyz=3.11.10 14:44:56 ++ [[ -z 3.11.10 ]] 14:44:56 ++ echo 3.11.10 14:44:56 ++ return 0 14:44:56 + pyenv local 3.11.10 14:44:56 + local command 14:44:56 + command=local 14:44:56 + '[' 2 -gt 0 ']' 14:44:56 + shift 14:44:56 + case "$command" in 14:44:56 + command pyenv local 3.11.10 14:44:56 + for arg in "$@" 14:44:56 + case $arg in 14:44:56 + pkg_list+='tox ' 14:44:56 + for arg in "$@" 14:44:56 + case $arg in 14:44:56 + pkg_list+='virtualenv ' 14:44:56 + for arg in "$@" 14:44:56 + case $arg in 14:44:56 + pkg_list+='urllib3~=1.26.15 ' 14:44:56 + [[ -f /tmp/.toxenv ]] 14:44:56 ++ cat /tmp/.toxenv 14:44:56 + lf_venv=/tmp/venv-EVPU 14:44:56 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-EVPU from' file:/tmp/.toxenv 14:44:56 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-EVPU from file:/tmp/.toxenv 14:44:56 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 14:44:56 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:44:56 + local 'pip_opts=--upgrade --quiet' 14:44:56 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 14:44:56 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 14:44:56 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 14:44:56 + [[ -n '' ]] 14:44:56 + [[ -n '' ]] 14:44:56 + lf-venv-pip-install /tmp/venv-EVPU/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 14:44:56 + local venv_python=/tmp/venv-EVPU/bin/python3 14:44:56 + shift 14:44:56 + local upstream=https://pypi.org/simple 14:44:56 + /tmp/venv-EVPU/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 14:44:57 + return 0 14:44:57 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 14:44:57 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 14:44:57 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 14:44:57 + lf-venv-pip-install /tmp/venv-EVPU/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 14:44:57 + local venv_python=/tmp/venv-EVPU/bin/python3 14:44:57 + shift 14:44:57 + local upstream=https://pypi.org/simple 14:44:57 + /tmp/venv-EVPU/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 14:44:58 + return 0 14:44:58 + type python3 14:44:58 + true 14:44:58 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-EVPU/bin to PATH' 14:44:58 lf-activate-venv(): INFO: Adding /tmp/venv-EVPU/bin to PATH 14:44:58 + PATH=/tmp/venv-EVPU/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 14:44:58 + return 0 14:44:58 + [[ -d /opt/pyenv ]] 14:44:58 + echo '---> Setting up pyenv' 14:44:58 ---> Setting up pyenv 14:44:58 + export PYENV_ROOT=/opt/pyenv 14:44:58 + PYENV_ROOT=/opt/pyenv 14:44:58 + export PATH=/opt/pyenv/bin:/tmp/venv-EVPU/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 14:44:58 + PATH=/opt/pyenv/bin:/tmp/venv-EVPU/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 14:44:58 ++ pwd 14:44:58 + PYTHONPATH=/w/workspace/transportpce-tox-verify-vanadium 14:44:58 + export PYTHONPATH 14:44:58 + export TOX_TESTENV_PASSENV=PYTHONPATH 14:44:58 + TOX_TESTENV_PASSENV=PYTHONPATH 14:44:58 + tox --version 14:44:59 4.61.2 from /tmp/venv-EVPU/lib/python3.11/site-packages/tox/__init__.py 14:44:59 + PARALLEL=True 14:44:59 + TOX_OPTIONS_LIST= 14:44:59 + [[ -n '' ]] 14:44:59 + case ${PARALLEL,,} in 14:44:59 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 14:44:59 + tox --parallel auto --parallel-live 14:44:59 + tee -a /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tox.log 14:45:00 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:00 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 14:45:00 docs: install_deps> python -I -m pip install -r docs/requirements.txt 14:45:00 checkbashisms: freeze> python -m pip freeze --all 14:45:01 checkbashisms: pip==26.2.1,setuptools==84.0.0 14:45:01 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:45:01 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-vanadium/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)' 14:45:01 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 14:45:02 checkbashisms: OK ✔ in 3.13 seconds 14:45:02 pre-commit: install_deps> python -I -m pip install pre-commit 14:45:07 buildcontroller: freeze> python -m pip freeze --all 14:45:07 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:07 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh 14:45:07 + update-java-alternatives -l 14:45:07 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 14:45:07 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 14:45:07 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 14:45:07 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 14:45:11 pre-commit: freeze> python -m pip freeze --all 14:45:12 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.32.5,identify==2.6.19,nodeenv==1.10.0,pip==26.2.1,platformdirs==4.11.7,pre_commit==4.6.2,python-discovery==1.6.0,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.7.8 14:45:12 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./fixCIcentOS8reposMirrors.sh 14:45:12 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-vanadium/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)' 14:45:12 /usr/bin/cpan 14:45:12 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run --all-files --show-diff-on-failure 14:45:12 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:12 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:12 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 14:45:12 update-alternatives: error: no alternatives for jaotc 14:45:12 update-alternatives: error: no alternatives for rmic 14:45:12 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 14:45:12 java -version 14:45:12 21 14:45:12 + JAVA_VER=21 14:45:12 + echo 21 14:45:12 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 14:45:12 + javac -version 14:45:12 21 14:45:12 ok, java is 21 or newer 14:45:12 + JAVAC_VER=21 14:45:12 + echo 21 14:45:12 + [ 21 -ge 21 ] 14:45:12 + [ 21 -ge 21 ] 14:45:12 + echo ok, java is 21 or newer 14:45:12 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz -P /tmp 14:45:13 https://dlcdn.apache.org/maven/maven-3/3.9.14/binaries/apache-maven-3.9.14-bin.tar.gz: 14:45:13 2026-09-04 14:45:12 ERROR 404: Not Found. 14:45:13 + sudo mkdir -p /opt 14:45:13 + sudo tar xf /tmp/apache-maven-3.9.14-bin.tar.gz -C /opt 14:45:13 tar: /tmp/apache-maven-3.9.14-bin.tar.gz: Cannot open: No such file or directory 14:45:13 tar: Error is not recoverable: exiting now 14:45:13 + sudo ln -s /opt/apache-maven-3.9.14 /opt/maven 14:45:13 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 14:45:13 + mvn --version 14:45:13 ./installMavenUbuntu.sh: 28: mvn: not found 14:45:13 buildcontroller: exit 127 (5.68 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_controller.sh pid=2564 14:45:13 [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. 14:45:13 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 14:45:13 buildcontroller: FAIL ✖ in 13.55 seconds 14:45:13 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 14:45:14 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 14:45:15 docs: freeze> python -m pip freeze --all 14:45:15 docs-linkcheck: freeze> python -m pip freeze --all 14:45:15 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,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.3,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.6.3,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.0.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.7.0 14:45:15 docs: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-vanadium/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-vanadium/docs/_build/html 14:45:16 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.1,deepmerge==3.0.1,docutils==0.22.4,idna==3.19,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.3,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.6.3,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.0.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.7.0 14:45:16 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-vanadium/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-vanadium/docs/_build/linkcheck 14:45:16 pylint: freeze> python -m pip freeze --all 14:45:16 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.7,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 14:45:16 pylint: commands[0] /w/workspace/transportpce-tox-verify-vanadium/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}$' '{}' + 14:45:23 docs: OK ✔ in 23.28 seconds 14:45:23 build_karaf_tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:25 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:45:25 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. 14:45:26 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 14:45:27 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 14:45:27 [INFO] Once installed this environment will be reused. 14:45:27 [INFO] This may take a few minutes... 14:45:28 docs-linkcheck: OK ✔ in 28.82 seconds 14:45:28 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:30 build_karaf_tests121: freeze> python -m pip freeze --all 14:45:30 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:30 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:30 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf121 14:45:30 build karaf in karaf121 with ./karaf121.env 14:45:30 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:30 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:30 build_karaf_tests121: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3131 14:45:30 build_karaf_tests121: FAIL ✖ in 7.7 seconds 14:45:30 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:31 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 14:45:31 [INFO] Once installed this environment will be reused. 14:45:31 [INFO] This may take a few minutes... 14:45:35 14:45:35 ------------------------------------ 14:45:35 Your code has been rated at 10.00/10 14:45:35 14:45:36 build_karaf_tests221: freeze> python -m pip freeze --all 14:45:36 pylint: OK ✔ in 23.55 seconds 14:45:36 build_karaf_tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:36 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:36 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:36 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 14:45:36 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:36 build karaf in karaf221 with ./karaf221.env 14:45:36 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:36 build_karaf_tests221: exit 127 (0.02 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3190 14:45:37 build_karaf_tests221: FAIL ✖ in 8.55 seconds 14:45:37 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:37 [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. 14:45:37 [INFO] Once installed this environment will be reused. 14:45:37 [INFO] This may take a few minutes... 14:45:37 build_karaf_tests71: freeze> python -m pip freeze --all 14:45:37 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:37 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:37 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 14:45:37 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:37 build karaf in karaf71 with ./karaf71.env 14:45:37 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:37 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3222 14:45:37 build_karaf_tests71: FAIL ✖ in 7.17 seconds 14:45:37 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:40 [INFO] Installing environment for https://github.com/perltidy/perltidy. 14:45:40 [INFO] Once installed this environment will be reused. 14:45:40 [INFO] This may take a few minutes... 14:45:43 build_karaf_tests190: freeze> python -m pip freeze --all 14:45:43 build_karaf_tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:43 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh 14:45:43 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc 14:45:43 ./build_karaf_for_tests.sh: 22: mvn: not found 14:45:43 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 14:45:43 build karaf in karafoc with ./karafoc.env 14:45:43 build_karaf_tests190: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./build_karaf_for_tests.sh pid=3266 14:45:43 build_karaf_tests190: FAIL ✖ in 6.9 seconds 14:45:43 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:45:43 buildlighty: freeze> python -m pip freeze --all 14:45:44 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:44 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh 14:45:44 ./build.sh: 7: mvn: not found 14:45:44 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 14:45:44 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-vanadium/lighty> ./build.sh pid=3286 14:45:46 buildlighty: FAIL ✖ in 7.13 seconds 14:45:46 sims: freeze> python -m pip freeze --all 14:45:46 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:45:46 sims: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./install_lightynode.sh 14:45:46 Using lighynode version 20.1.0.5 14:45:46 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 14:45:49 trim trailing whitespace.................................................Passed 14:45:49 Tabs remover.............................................................Passed 14:45:49 autopep8.................................................................Passed 14:45:52 perltidy.................................................................Passed 14:45:52 sims: OK ✔ in 11.36 seconds 14:45:52 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-vanadium/tests> pre-commit run gitlint-ci --hook-stage manual 14:45:53 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:53 [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. 14:45:53 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 14:45:53 [INFO] Once installed this environment will be reused. 14:45:53 [INFO] This may take a few minutes... 14:45:59 gitlint..................................................................Passed 14:46:36 pre-commit: OK ✔ in 56.55 seconds 14:46:36 testsPCE: freeze> python -m pip freeze --all 14:46:37 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,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.64.0,gnpy4tpce==2.4.7,idna==3.19,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.3,matplotlib==3.11.1,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.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.3.post1,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 14:46:37 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce 14:46:37 pytest -q transportpce_tests/pce/test01_pce.py 14:48:37 EEEEEEEEEEEEEEEEEEEE [100%] 14:48:41 ==================================== ERRORS ==================================== 14:48:41 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 14:48:41 14:48:41 cls = 14:48:41 14:48:41 @classmethod 14:48:41 def setUpClass(cls): 14:48:41 # pylint: disable=bare-except 14:48:41 sample_files_parsed = False 14:48:41 time.sleep(20) 14:48:41 try: 14:48:41 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:41 "..", "..", "sample_configs", "honeynode-topo.json") 14:48:41 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 14:48:41 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 14:48:41 14:48:41 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:41 "..", "..", "sample_configs", "NW-simple-topology.json") 14:48:41 14:48:41 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 14:48:41 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 14:48:41 14:48:41 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:41 "..", "..", "sample_configs", "NW-for-test-5-4.json") 14:48:41 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 14:48:41 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 14:48:41 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:48:41 "..", "..", "sample_configs", "pce_portmapping_121.json") 14:48:41 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 14:48:41 cls.port_mapping_data = port_mapping.read() 14:48:41 sample_files_parsed = True 14:48:41 except PermissionError as err: 14:48:41 print("Permission Error when trying to read sample files\n", err) 14:48:41 sys.exit(2) 14:48:41 except FileNotFoundError as err: 14:48:41 print("File Not found Error when trying to read sample files\n", err) 14:48:41 sys.exit(2) 14:48:41 except: 14:48:41 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 14:48:41 sys.exit(2) 14:48:41 finally: 14:48:41 if sample_files_parsed: 14:48:41 print("sample files content loaded") 14:48:41 14:48:41 > cls.processes = test_utils.start_tpce() 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 14:48:41 transportpce_tests/pce/test01_pce.py:93: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 def start_tpce(): 14:48:41 if 'NO_ODL_STARTUP' in os.environ: 14:48:41 print('No OpenDaylight instance to start!') 14:48:41 return [] 14:48:41 print('starting OpenDaylight...') 14:48:41 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:48:41 process = start_lighty() 14:48:41 else: 14:48:41 process = start_karaf() 14:48:41 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:48:41 print('OpenDaylight started !') 14:48:41 else: 14:48:41 print('OpenDaylight failed to start !') 14:48:41 shutdown_process(process) 14:48:41 for pid in process_list: 14:48:41 shutdown_process(pid) 14:48:41 > sys.exit(1) 14:48:41 E SystemExit: 1 14:48:41 14:48:41 transportpce_tests/common/test_utils.py:232: SystemExit 14:48:41 ---------------------------- Captured stdout setup ----------------------------- 14:48:41 sample files content loaded 14:48:41 starting OpenDaylight... 14:48:41 starting KARAF (karaf) TransportPCE build... 14:48:41 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:48:41 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae29b2e0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2ab4c0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae26bf60> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae29b2e0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedb076d120> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae29b2e0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2a9d00> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2aba60> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae26bf60> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2abb00> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2ab380> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae26bf60> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2aafc0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2a9da0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2abd80> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2abb00> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae26be20> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae26bce0> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 14:48:41 14:48:41 cls = 14:48:41 func = . at 0x7fedae2abc40> 14:48:41 when = 'setup' 14:48:41 reraise = (, ) 14:48:41 14:48:41 @classmethod 14:48:41 def from_call( 14:48:41 cls, 14:48:41 func: Callable[[], TResult], 14:48:41 when: Literal["collect", "setup", "call", "teardown"], 14:48:41 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:48:41 ) -> CallInfo[TResult]: 14:48:41 """Call func, wrapping the result in a CallInfo. 14:48:41 14:48:41 :param func: 14:48:41 The function to call. Called without arguments. 14:48:41 :type func: Callable[[], _pytest.runner.TResult] 14:48:41 :param when: 14:48:41 The phase in which the function is called. 14:48:41 :param reraise: 14:48:41 Exception or exceptions that shall propagate if raised by the 14:48:41 function, instead of being wrapped in the CallInfo. 14:48:41 """ 14:48:41 excinfo = None 14:48:41 instant = timing.Instant() 14:48:41 try: 14:48:41 > result: TResult | None = func() 14:48:41 ^^^^^^ 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:48:41 lambda: runtest_hook(item=item, **kwds), 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:48:41 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:48:41 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:48:41 yield 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:48:41 return (yield) 14:48:41 ^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:48:41 item.session._setupstate.setup(item) 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:48:41 col.setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:48:41 super().setup() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:48:41 self._request._fillfixtures() 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:48:41 item.funcargs[argname] = self.getfixturevalue(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:48:41 fixturedef = self._get_active_fixturedef(argname) 14:48:41 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:48:41 fixturedef.execute(request=subrequest) 14:48:41 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:48:41 14:48:41 self = 14:48:41 request = > 14:48:41 14:48:41 def execute(self, request: SubRequest) -> FixtureValue: 14:48:41 """Return the value of this fixture, executing it if not cached.""" 14:48:41 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:48:41 # This needs to be done before checking if we have a cached value, since 14:48:41 # if a dependent fixture has their cache invalidated, e.g. due to 14:48:41 # parametrization, they finalize themselves and fixtures depending on it 14:48:41 # (which will likely include this fixture) setting `self.cached_result = None`. 14:48:41 # See #4871 14:48:41 requested_fixtures_that_should_finalize_us = [] 14:48:41 for argname in self.argnames: 14:48:41 fixturedef = request._get_active_fixturedef(argname) 14:48:41 # Saves requested fixtures in a list so we later can add our finalizer 14:48:41 # to them, ensuring that if a requested fixture gets torn down we get torn 14:48:41 # down first. This is generally handled by SetupState, but still currently 14:48:41 # needed when this fixture is not parametrized but depends on a parametrized 14:48:41 # fixture. 14:48:41 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:48:41 14:48:41 # Check for (and return) cached value/exception. 14:48:41 if self.cached_result is not None: 14:48:41 request_cache_key = self.cache_key(request) 14:48:41 cache_key = self.cached_result[1] 14:48:41 try: 14:48:41 # Attempt to make a normal == check: this might fail for objects 14:48:41 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:48:41 cache_hit = bool(request_cache_key == cache_key) 14:48:41 except (ValueError, RuntimeError): 14:48:41 # If the comparison raises, use 'is' as fallback. 14:48:41 cache_hit = request_cache_key is cache_key 14:48:41 14:48:41 if cache_hit: 14:48:41 if self.cached_result[2] is not None: 14:48:41 exc, exc_tb = self.cached_result[2] 14:48:41 raise exc.with_traceback(exc_tb) 14:48:41 else: 14:48:41 return self.cached_result[0] 14:48:41 # We have a previous but differently parametrized fixture instance 14:48:41 # so we need to tear it down before creating a new one. 14:48:41 self.finish(request) 14:48:41 assert self.cached_result is None 14:48:41 14:48:41 # Add finalizer to requested fixtures we saved previously. 14:48:41 # We make sure to do this after checking for cached value to avoid 14:48:41 # adding our finalizer multiple times. (#12135) 14:48:41 finalizer = functools.partial(self.finish, request=request) 14:48:41 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:48:41 parent_fixture.addfinalizer(finalizer) 14:48:41 14:48:41 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:48:41 # which is executed last. 14:48:41 > assert not self._finalizers 14:48:41 ^^^^^^^^^^^^^^^^^^^^ 14:48:41 E AssertionError 14:48:41 14:48:41 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:48:41 =========================== short test summary info ============================ 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 14:48:41 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 14:48:41 20 errors in 123.85s (0:02:03) 14:48:41 testsPCE: exit 1 (124.18 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh pce pid=3527 14:48:41 testsPCE: FAIL ✖ in 2 minutes 57.83 seconds 14:48:41 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:48:42 tests121: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:48:42 tests190: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:48:50 tests190: freeze> python -m pip freeze --all 14:48:50 tests_tapi: freeze> python -m pip freeze --all 14:48:50 tests121: freeze> python -m pip freeze --all 14:48:50 tests190: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:48:50 tests190: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc 14:48:50 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:48:50 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi 14:48:50 using environment variables from ./karafoc.env 14:48:50 using environment variables from ./karaf221.env 14:48:50 pytest -q transportpce_tests/oc/test01_portmapping.py 14:48:50 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 14:48:50 tests121: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:48:50 tests121: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 14:48:50 using environment variables from ./karaf121.env 14:48:50 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 14:50:30 EEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:50:32 ==================================== ERRORS ==================================== 14:50:32 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 14:50:32 14:50:32 cls = 14:50:32 14:50:32 @classmethod 14:50:32 def setUpClass(cls): 14:50:32 > cls.processes = test_utils.start_tpce() 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 14:50:32 transportpce_tests/oc/test01_portmapping.py:29: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 def start_tpce(): 14:50:32 if 'NO_ODL_STARTUP' in os.environ: 14:50:32 print('No OpenDaylight instance to start!') 14:50:32 return [] 14:50:32 print('starting OpenDaylight...') 14:50:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:32 process = start_lighty() 14:50:32 else: 14:50:32 process = start_karaf() 14:50:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:32 print('OpenDaylight started !') 14:50:32 else: 14:50:32 print('OpenDaylight failed to start !') 14:50:32 shutdown_process(process) 14:50:32 for pid in process_list: 14:50:32 shutdown_process(pid) 14:50:32 > sys.exit(1) 14:50:32 E SystemExit: 1 14:50:32 14:50:32 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:32 ---------------------------- Captured stdout setup ----------------------------- 14:50:32 starting OpenDaylight... 14:50:32 starting KARAF (karafoc) TransportPCE build... 14:50:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catlog_input_insertion _ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff445d40fe0> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff445d636a0> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff44644f240> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff447502fc0> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff445d613a0> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff445d41120> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff448450400> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff44644f240> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:50:32 14:50:32 cls = 14:50:32 func = . at 0x7ff445d41120> 14:50:32 when = 'setup' 14:50:32 reraise = (, ) 14:50:32 14:50:32 @classmethod 14:50:32 def from_call( 14:50:32 cls, 14:50:32 func: Callable[[], TResult], 14:50:32 when: Literal["collect", "setup", "call", "teardown"], 14:50:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:32 ) -> CallInfo[TResult]: 14:50:32 """Call func, wrapping the result in a CallInfo. 14:50:32 14:50:32 :param func: 14:50:32 The function to call. Called without arguments. 14:50:32 :type func: Callable[[], _pytest.runner.TResult] 14:50:32 :param when: 14:50:32 The phase in which the function is called. 14:50:32 :param reraise: 14:50:32 Exception or exceptions that shall propagate if raised by the 14:50:32 function, instead of being wrapped in the CallInfo. 14:50:32 """ 14:50:32 excinfo = None 14:50:32 instant = timing.Instant() 14:50:32 try: 14:50:32 > result: TResult | None = func() 14:50:32 ^^^^^^ 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:32 lambda: runtest_hook(item=item, **kwds), 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:32 yield 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:32 return (yield) 14:50:32 ^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:32 item.session._setupstate.setup(item) 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:32 col.setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:32 super().setup() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:32 self._request._fillfixtures() 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:32 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:32 fixturedef = self._get_active_fixturedef(argname) 14:50:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:32 fixturedef.execute(request=subrequest) 14:50:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:32 14:50:32 self = 14:50:32 request = > 14:50:32 14:50:32 E def execute(self, request: SubRequest) -> FixtureValue: 14:50:32 """Return the value of this fixture, executing it if not cached.""" 14:50:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:32 # This needs to be done before checking if we have a cached value, since 14:50:32 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:32 # parametrization, they finalize themselves and fixtures depending on it 14:50:32 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:32 # See #4871 14:50:32 requested_fixtures_that_should_finalize_us = [] 14:50:32 for argname in self.argnames: 14:50:32 fixturedef = request._get_active_fixturedef(argname) 14:50:32 # Saves requested fixtures in a list so we later can add our finalizer 14:50:32 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:32 # down first. This is generally handled by SetupState, but still currently 14:50:32 # needed when this fixture is not parametrized but depends on a parametrized 14:50:32 # fixture. 14:50:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:32 14:50:32 # Check for (and return) cached value/exception. 14:50:32 if self.cached_result is not None: 14:50:32 request_cache_key = self.cache_key(request) 14:50:32 cache_key = self.cached_result[1] 14:50:32 try: 14:50:32 # Attempt to make a normal == check: this might fail for objects 14:50:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:32 cache_hit = bool(request_cache_key == cache_key) 14:50:32 except (ValueError, RuntimeError): 14:50:32 # If the comparison raises, use 'is' as fallback. 14:50:32 cache_hit = request_cache_key is cache_key 14:50:32 14:50:32 if cache_hit: 14:50:32 if self.cached_result[2] is not None: 14:50:32 exc, exc_tb = self.cached_result[2] 14:50:32 raise exc.with_traceback(exc_tb) 14:50:32 else: 14:50:32 return self.cached_result[0] 14:50:32 # We have a previous but differently parametrized fixture instance 14:50:32 # so we need to tear it down before creating a new one. 14:50:32 self.finish(request) 14:50:32 assert self.cached_result is None 14:50:32 14:50:32 # Add finalizer to requested fixtures we saved previously. 14:50:32 # We make sure to do this after checking for cached value to avoid 14:50:32 # adding our finalizer multiple times. (#12135) 14:50:32 finalizer = functools.partial(self.finish, request=request) 14:50:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:32 parent_fixture.addfinalizer(finalizer) 14:50:32 14:50:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:32 # which is executed last. 14:50:32 > assert not self._finalizers 14:50:32 ^^^^^^^^^^^^^^^^^^^^ 14:50:32 E AssertionError 14:50:32 14:50:32 ../.tox/tests190/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:32 =========================== short test summary info ============================ 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catlog_input_insertion 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 14:50:32 ERROR transportpce_tests/oc/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:50:32 10 errors in 101.96s (0:01:41) 14:50:32 tests190: exit 1 (102.25 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh oc pid=3633 14:50:32 EEtests190: FAIL ✖ in 1 minute 51.19 seconds 14:50:32 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:50:32 EEEEEEEEEEEEEEEEEEEEE [100%] 14:50:34 ==================================== ERRORS ==================================== 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:50:34 14:50:34 cls = 14:50:34 14:50:34 @classmethod 14:50:34 def setUpClass(cls): 14:50:34 > cls.processes = test_utils.start_tpce() 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 14:50:34 transportpce_tests/1.2.1/test01_portmapping.py:33: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 def start_tpce(): 14:50:34 if 'NO_ODL_STARTUP' in os.environ: 14:50:34 print('No OpenDaylight instance to start!') 14:50:34 return [] 14:50:34 print('starting OpenDaylight...') 14:50:34 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:34 process = start_lighty() 14:50:34 else: 14:50:34 process = start_karaf() 14:50:34 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:34 print('OpenDaylight started !') 14:50:34 else: 14:50:34 print('OpenDaylight failed to start !') 14:50:34 shutdown_process(process) 14:50:34 for pid in process_list: 14:50:34 shutdown_process(pid) 14:50:34 > sys.exit(1) 14:50:34 E SystemExit: 1 14:50:34 14:50:34 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:34 ---------------------------- Captured stdout setup ----------------------------- 14:50:34 starting OpenDaylight... 14:50:34 starting KARAF (karaf121) TransportPCE build... 14:50:34 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:34 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935760> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647967560> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff64aabb740> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff649103560> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff6479353a0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935580> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647967600> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff6479668e0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647966de0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647967600> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647966f20> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935580> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647966de0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647966f20> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935800> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935bc0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935da0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647966840> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647539d00> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 14:50:34 14:50:34 cls = 14:50:34 func = . at 0x7ff647935bc0> 14:50:34 when = 'setup' 14:50:34 reraise = (, ) 14:50:34 14:50:34 @classmethod 14:50:34 def from_call( 14:50:34 cls, 14:50:34 func: Callable[[], TResult], 14:50:34 when: Literal["collect", "setup", "call", "teardown"], 14:50:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:34 ) -> CallInfo[TResult]: 14:50:34 """Call func, wrapping the result in a CallInfo. 14:50:34 14:50:34 :param func: 14:50:34 The function to call. Called without arguments. 14:50:34 :type func: Callable[[], _pytest.runner.TResult] 14:50:34 :param when: 14:50:34 The phase in which the function is called. 14:50:34 :param reraise: 14:50:34 Exception or exceptions that shall propagate if raised by the 14:50:34 function, instead of being wrapped in the CallInfo. 14:50:34 """ 14:50:34 excinfo = None 14:50:34 instant = timing.Instant() 14:50:34 try: 14:50:34 > result: TResult | None = func() 14:50:34 ^^^^^^ 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:34 lambda: runtest_hook(item=item, **kwds), 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:34 yield 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:34 return (yield) 14:50:34 ^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:34 item.session._setupstate.setup(item) 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:34 col.setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:34 super().setup() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:34 self._request._fillfixtures() 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:34 fixturedef = self._get_active_fixturedef(argname) 14:50:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:34 fixturedef.execute(request=subrequest) 14:50:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:34 14:50:34 self = 14:50:34 request = > 14:50:34 14:50:34 def execute(self, request: SubRequest) -> FixtureValue: 14:50:34 """Return the value of this fixture, executing it if not cached.""" 14:50:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:34 # This needs to be done before checking if we have a cached value, since 14:50:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:34 # parametrization, they finalize themselves and fixtures depending on it 14:50:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:34 # See #4871 14:50:34 requested_fixtures_that_should_finalize_us = [] 14:50:34 for argname in self.argnames: 14:50:34 fixturedef = request._get_active_fixturedef(argname) 14:50:34 # Saves requested fixtures in a list so we later can add our finalizer 14:50:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:34 # down first. This is generally handled by SetupState, but still currently 14:50:34 # needed when this fixture is not parametrized but depends on a parametrized 14:50:34 # fixture. 14:50:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:34 14:50:34 # Check for (and return) cached value/exception. 14:50:34 if self.cached_result is not None: 14:50:34 request_cache_key = self.cache_key(request) 14:50:34 cache_key = self.cached_result[1] 14:50:34 try: 14:50:34 # Attempt to make a normal == check: this might fail for objects 14:50:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:34 cache_hit = bool(request_cache_key == cache_key) 14:50:34 except (ValueError, RuntimeError): 14:50:34 E # If the comparison raises, use 'is' as fallback. 14:50:34 cache_hit = request_cache_key is cache_key 14:50:34 14:50:34 if cache_hit: 14:50:34 if self.cached_result[2] is not None: 14:50:34 exc, exc_tb = self.cached_result[2] 14:50:34 raise exc.with_traceback(exc_tb) 14:50:34 else: 14:50:34 return self.cached_result[0] 14:50:34 # We have a previous but differently parametrized fixture instance 14:50:34 # so we need to tear it down before creating a new one. 14:50:34 self.finish(request) 14:50:34 assert self.cached_result is None 14:50:34 14:50:34 # Add finalizer to requested fixtures we saved previously. 14:50:34 # We make sure to do this after checking for cached value to avoid 14:50:34 # adding our finalizer multiple times. (#12135) 14:50:34 finalizer = functools.partial(self.finish, request=request) 14:50:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:34 parent_fixture.addfinalizer(finalizer) 14:50:34 14:50:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:34 # which is executed last. 14:50:34 > assert not self._finalizers 14:50:34 ^^^^^^^^^^^^^^^^^^^^ 14:50:34 E AssertionError 14:50:34 14:50:34 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:34 =========================== short test summary info ============================ 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 14:50:34 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 14:50:34 21 errors in 104.02s (0:01:44) 14:50:34 tests121: exit 1 (104.31 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 1.2.1 pid=3655 14:50:34 EEEEEEEEEEEEEEEEEEEEEEtests121: FAIL ✖ in 1 minute 53.36 seconds 14:50:38 tests71: freeze> python -m pip freeze --all 14:50:39 Etests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:50:39 tests71: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 14:50:39 using environment variables from ./karaf71.env 14:50:39 Epytest -q transportpce_tests/7.1/test01_portmapping.py 14:50:39 EEEEEE [100%] 14:50:40 ==================================== ERRORS ==================================== 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 14:50:40 14:50:40 cls = 14:50:40 14:50:40 @classmethod 14:50:40 def setUpClass(cls): 14:50:40 cls.init_failed = False 14:50:40 os.environ['JAVA_MIN_MEM'] = '1024M' 14:50:40 os.environ['JAVA_MAX_MEM'] = '4096M' 14:50:40 > cls.processes = test_utils.start_tpce() 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 14:50:40 transportpce_tests/tapi/test01_abstracted_topology.py:148: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 def start_tpce(): 14:50:40 if 'NO_ODL_STARTUP' in os.environ: 14:50:40 print('No OpenDaylight instance to start!') 14:50:40 return [] 14:50:40 print('starting OpenDaylight...') 14:50:40 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:50:40 process = start_lighty() 14:50:40 else: 14:50:40 process = start_karaf() 14:50:40 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:50:40 print('OpenDaylight started !') 14:50:40 else: 14:50:40 print('OpenDaylight failed to start !') 14:50:40 shutdown_process(process) 14:50:40 for pid in process_list: 14:50:40 shutdown_process(pid) 14:50:40 > sys.exit(1) 14:50:40 E SystemExit: 1 14:50:40 14:50:40 transportpce_tests/common/test_utils.py:232: SystemExit 14:50:40 ---------------------------- Captured stdout setup ----------------------------- 14:50:40 starting OpenDaylight... 14:50:40 starting KARAF (karaf221) TransportPCE build... 14:50:40 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452a9bc0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452ff4c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e46a7b380> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479b3740> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452ff560> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452ff880> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452a9bc0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452a9bc0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fee80> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe660> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fed40> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe660> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5a80> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452a8e00> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5c60> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452a8e00> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5f80> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e479651c0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5260> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa53a0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5120> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa6480> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa4900> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa6a20> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa4720> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa4ea0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5a80> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa5260> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa6020> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa54e0> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e452fe700> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 14:50:40 14:50:40 cls = 14:50:40 func = . at 0x7f6e44fa7560> 14:50:40 when = 'setup' 14:50:40 reraise = (, ) 14:50:40 14:50:40 @classmethod 14:50:40 def from_call( 14:50:40 cls, 14:50:40 func: Callable[[], TResult], 14:50:40 when: Literal["collect", "setup", "call", "teardown"], 14:50:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:50:40 ) -> CallInfo[TResult]: 14:50:40 """Call func, wrapping the result in a CallInfo. 14:50:40 14:50:40 :param func: 14:50:40 The function to call. Called without arguments. 14:50:40 :type func: Callable[[], _pytest.runner.TResult] 14:50:40 :param when: 14:50:40 The phase in which the function is called. 14:50:40 :param reraise: 14:50:40 Exception or exceptions that shall propagate if raised by the 14:50:40 function, instead of being wrapped in the CallInfo. 14:50:40 """ 14:50:40 excinfo = None 14:50:40 instant = timing.Instant() 14:50:40 try: 14:50:40 > result: TResult | None = func() 14:50:40 ^^^^^^ 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:50:40 lambda: runtest_hook(item=item, **kwds), 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:50:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:50:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:50:40 yield 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:50:40 return (yield) 14:50:40 ^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:50:40 item.session._setupstate.setup(item) 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:50:40 col.setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:50:40 super().setup() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:50:40 self._request._fillfixtures() 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:50:40 item.funcargs[argname] = self.getfixturevalue(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:50:40 fixturedef = self._get_active_fixturedef(argname) 14:50:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:50:40 fixturedef.execute(request=subrequest) 14:50:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:50:40 14:50:40 self = 14:50:40 request = > 14:50:40 14:50:40 def execute(self, request: SubRequest) -> FixtureValue: 14:50:40 """Return the value of this fixture, executing it if not cached.""" 14:50:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:50:40 # This needs to be done before checking if we have a cached value, since 14:50:40 # if a dependent fixture has their cache invalidated, e.g. due to 14:50:40 # parametrization, they finalize themselves and fixtures depending on it 14:50:40 # (which will likely include this fixture) setting `self.cached_result = None`. 14:50:40 # See #4871 14:50:40 requested_fixtures_that_should_finalize_us = [] 14:50:40 for argname in self.argnames: 14:50:40 fixturedef = request._get_active_fixturedef(argname) 14:50:40 # Saves requested fixtures in a list so we later can add our finalizer 14:50:40 # to them, ensuring that if a requested fixture gets torn down we get torn 14:50:40 # down first. This is generally handled by SetupState, but still currently 14:50:40 # needed when this fixture is not parametrized but depends on a parametrized 14:50:40 # fixture. 14:50:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:50:40 14:50:40 # Check for (and return) cached value/exception. 14:50:40 if self.cached_result is not None: 14:50:40 request_cache_key = self.cache_key(request) 14:50:40 cache_key = self.cached_result[1] 14:50:40 try: 14:50:40 # Attempt to make a normal == check: this might fail for objects 14:50:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:50:40 cache_hit = bool(request_cache_key == cache_key) 14:50:40 except (ValueError, RuntimeError): 14:50:40 # If the comparison raises, use 'is' as fallback. 14:50:40 cache_hit = request_cache_key is cache_key 14:50:40 14:50:40 if cache_hit: 14:50:40 if self.cached_result[2] is not None: 14:50:40 exc, exc_tb = self.cached_result[2] 14:50:40 raise exc.with_traceback(exc_tb) 14:50:40 else: 14:50:40 return self.cached_result[0] 14:50:40 # We have a previous but differently parametrized fixture instance 14:50:40 # so we need to tear it down before creating a new one. 14:50:40 self.finish(request) 14:50:40 assert self.cached_result is None 14:50:40 14:50:40 # Add finalizer to requested fixtures we saved previously. 14:50:40 # We make sure to do this after checking for cached value to avoid 14:50:40 # adding our finalizer multiple times. (#12135) 14:50:40 finalizer = functools.partial(self.finish, request=request) 14:50:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:50:40 parent_fixture.addfinalizer(finalizer) 14:50:40 14:50:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:50:40 # which is executed last. 14:50:40 > assert not self._finalizers 14:50:40 ^^^^^^^^^^^^^^^^^^^^ 14:50:40 E AssertionError 14:50:40 14:50:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:50:40 =========================== short test summary info ============================ 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 14:50:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 14:50:40 51 errors in 109.85s (0:01:49) 14:50:40 tests_tapi: exit 1 (110.15 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh tapi pid=3642 14:50:40 tests_tapi: FAIL ✖ in 1 minute 59.09 seconds 14:50:40 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:50:47 tests221: freeze> python -m pip freeze --all 14:50:48 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:50:48 tests221: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 14:50:48 using environment variables from ./karaf221.env 14:50:48 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 14:52:19 EEEEEEEEEEEE [100%] 14:52:21 ==================================== ERRORS ==================================== 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 14:52:21 14:52:21 cls = 14:52:21 14:52:21 @classmethod 14:52:21 def setUpClass(cls): 14:52:21 > cls.processes = test_utils.start_tpce() 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 14:52:21 transportpce_tests/7.1/test01_portmapping.py:32: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 def start_tpce(): 14:52:21 if 'NO_ODL_STARTUP' in os.environ: 14:52:21 print('No OpenDaylight instance to start!') 14:52:21 return [] 14:52:21 print('starting OpenDaylight...') 14:52:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:52:21 process = start_lighty() 14:52:21 else: 14:52:21 process = start_karaf() 14:52:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:52:21 print('OpenDaylight started !') 14:52:21 else: 14:52:21 print('OpenDaylight failed to start !') 14:52:21 shutdown_process(process) 14:52:21 for pid in process_list: 14:52:21 shutdown_process(pid) 14:52:21 > sys.exit(1) 14:52:21 E SystemExit: 1 14:52:21 14:52:21 transportpce_tests/common/test_utils.py:232: SystemExit 14:52:21 ---------------------------- Captured stdout setup ----------------------------- 14:52:21 starting OpenDaylight... 14:52:21 starting KARAF (karaf71) TransportPCE build... 14:52:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb236700> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb25b740> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38ed950ea0> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb236700> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eca07e20> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb236700> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb25b600> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb259d00> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb25b920> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb25b7e0> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 14:52:21 14:52:21 cls = 14:52:21 func = . at 0x7f38eb236700> 14:52:21 when = 'setup' 14:52:21 reraise = (, ) 14:52:21 14:52:21 @classmethod 14:52:21 def from_call( 14:52:21 cls, 14:52:21 func: Callable[[], TResult], 14:52:21 when: Literal["collect", "setup", "call", "teardown"], 14:52:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:21 ) -> CallInfo[TResult]: 14:52:21 """Call func, wrapping the result in a CallInfo. 14:52:21 14:52:21 :param func: 14:52:21 The function to call. Called without arguments. 14:52:21 :type func: Callable[[], _pytest.runner.TResult] 14:52:21 :param when: 14:52:21 The phase in which the function is called. 14:52:21 :param reraise: 14:52:21 Exception or exceptions that shall propagate if raised by the 14:52:21 function, instead of being wrapped in the CallInfo. 14:52:21 """ 14:52:21 excinfo = None 14:52:21 instant = timing.Instant() 14:52:21 try: 14:52:21 > result: TResult | None = func() 14:52:21 ^^^^^^ 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:21 lambda: runtest_hook(item=item, **kwds), 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:21 yield 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:21 return (yield) 14:52:21 ^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:21 item.session._setupstate.setup(item) 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:21 col.setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:21 super().setup() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:21 self._request._fillfixtures() 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:21 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:21 fixturedef = self._get_active_fixturedef(argname) 14:52:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:21 fixturedef.execute(request=subrequest) 14:52:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:21 14:52:21 self = 14:52:21 request = > 14:52:21 14:52:21 def execute(self, request: SubRequest) -> FixtureValue: 14:52:21 """Return the value of this fixture, executing it if not cached.""" 14:52:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:21 # This needs to be done before checking if we have a cached value, since 14:52:21 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:21 # parametrization, they finalize themselves and fixtures depending on it 14:52:21 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:21 # See #4871 14:52:21 requested_fixtures_that_should_finalize_us = [] 14:52:21 for argname in self.argnames: 14:52:21 fixturedef = request._get_active_fixturedef(argname) 14:52:21 # Saves requested fixtures in a list so we later can add our finalizer 14:52:21 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:21 # down first. This is generally handled by SetupState, but still currently 14:52:21 # needed when this fixture is not parametrized but depends on a parametrized 14:52:21 # fixture. 14:52:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:21 14:52:21 # Check for (and return) cached value/exception. 14:52:21 if self.cached_result is not None: 14:52:21 request_cache_key = self.cache_key(request) 14:52:21 cache_key = self.cached_result[1] 14:52:21 try: 14:52:21 # Attempt to make a normal == check: this might fail for objects 14:52:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:21 cache_hit = bool(request_cache_key == cache_key) 14:52:21 except (ValueError, RuntimeError): 14:52:21 # If the comparison raises, use 'is' as fallback. 14:52:21 cache_hit = request_cache_key is cache_key 14:52:21 14:52:21 if cache_hit: 14:52:21 if self.cached_result[2] is not None: 14:52:21 exc, exc_tb = self.cached_result[2] 14:52:21 raise exc.with_traceback(exc_tb) 14:52:21 else: 14:52:21 return self.cached_result[0] 14:52:21 # We have a previous but differently parametrized fixture instance 14:52:21 # so we need to tear it down before creating a new one. 14:52:21 self.finish(request) 14:52:21 assert self.cached_result is None 14:52:21 14:52:21 # Add finalizer to requested fixtures we saved previously. 14:52:21 # We make sure to do this after checking for cached value to avoid 14:52:21 # adding our finalizer multiple times. (#12135) 14:52:21 finalizer = functools.partial(self.finish, request=request) 14:52:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:21 parent_fixture.addfinalizer(finalizer) 14:52:21 14:52:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:21 # which is executed last. 14:52:21 > assert not self._finalizers 14:52:21 ^^^^^^^^^^^^^^^^^^^^ 14:52:21 E AssertionError 14:52:21 14:52:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:21 =========================== short test summary info ============================ 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 14:52:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 14:52:21 12 errors in 102.38s (0:01:42) 14:52:21 tests71: exit 1 (102.64 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 7.1 pid=3794 14:52:28 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:52:34 ==================================== ERRORS ==================================== 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:52:34 14:52:34 cls = 14:52:34 14:52:34 @classmethod 14:52:34 def setUpClass(cls): 14:52:34 > cls.processes = test_utils.start_tpce() 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 14:52:34 transportpce_tests/2.2.1/test01_portmapping.py:33: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 def start_tpce(): 14:52:34 if 'NO_ODL_STARTUP' in os.environ: 14:52:34 print('No OpenDaylight instance to start!') 14:52:34 return [] 14:52:34 print('starting OpenDaylight...') 14:52:34 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:52:34 process = start_lighty() 14:52:34 else: 14:52:34 process = start_karaf() 14:52:34 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:52:34 print('OpenDaylight started !') 14:52:34 else: 14:52:34 print('OpenDaylight failed to start !') 14:52:34 shutdown_process(process) 14:52:34 for pid in process_list: 14:52:34 shutdown_process(pid) 14:52:34 > sys.exit(1) 14:52:34 E SystemExit: 1 14:52:34 14:52:34 transportpce_tests/common/test_utils.py:232: SystemExit 14:52:34 ---------------------------- Captured stdout setup ----------------------------- 14:52:34 starting OpenDaylight... 14:52:34 starting KARAF (karaf221) TransportPCE build... 14:52:34 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:52:34 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bedb560> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf1fec0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0d6a2a20> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0e5e84a0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7aca0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf1fec0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0d6a2a20> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf78cc0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bedb6a0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf1fec0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf78360> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bedb6a0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7b9c0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7b880> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda020> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda020> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7bb00> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf78b80> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7bc40> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7b880> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf78360> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7b1a0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7b100> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7a5c0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7aca0> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0bf7b740> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 14:52:34 14:52:34 cls = 14:52:34 func = . at 0x7f9e0beda340> 14:52:34 when = 'setup' 14:52:34 reraise = (, ) 14:52:34 14:52:34 @classmethod 14:52:34 def from_call( 14:52:34 cls, 14:52:34 func: Callable[[], TResult], 14:52:34 when: Literal["collect", "setup", "call", "teardown"], 14:52:34 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:52:34 ) -> CallInfo[TResult]: 14:52:34 """Call func, wrapping the result in a CallInfo. 14:52:34 14:52:34 :param func: 14:52:34 The function to call. Called without arguments. 14:52:34 :type func: Callable[[], _pytest.runner.TResult] 14:52:34 :param when: 14:52:34 The phase in which the function is called. 14:52:34 :param reraise: 14:52:34 Exception or exceptions that shall propagate if raised by the 14:52:34 function, instead of being wrapped in the CallInfo. 14:52:34 """ 14:52:34 excinfo = None 14:52:34 instant = timing.Instant() 14:52:34 try: 14:52:34 > result: TResult | None = func() 14:52:34 ^^^^^^ 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:52:34 lambda: runtest_hook(item=item, **kwds), 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:52:34 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:52:34 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:52:34 yield 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:52:34 return (yield) 14:52:34 ^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:52:34 item.session._setupstate.setup(item) 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:52:34 col.setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:52:34 super().setup() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:52:34 self._request._fillfixtures() 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:52:34 item.funcargs[argname] = self.getfixturevalue(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:52:34 fixturedef = self._get_active_fixturedef(argname) 14:52:34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:52:34 fixturedef.execute(request=subrequest) 14:52:34 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:52:34 14:52:34 self = 14:52:34 request = > 14:52:34 14:52:34 def execute(self, request: SubRequest) -> FixtureValue: 14:52:34 """Return the value of this fixture, executing it if not cached.""" 14:52:34 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:52:34 # This needs to be done before checking if we have a cached value, since 14:52:34 # if a dependent fixture has their cache invalidated, e.g. due to 14:52:34 # parametrization, they finalize themselves and fixtures depending on it 14:52:34 # (which will likely include this fixture) setting `self.cached_result = None`. 14:52:34 # See #4871 14:52:34 requested_fixtures_that_should_finalize_us = [] 14:52:34 for argname in self.argnames: 14:52:34 fixturedef = request._get_active_fixturedef(argname) 14:52:34 # Saves requested fixtures in a list so we later can add our finalizer 14:52:34 # to them, ensuring that if a requested fixture gets torn down we get torn 14:52:34 # down first. This is generally handled by SetupState, but still currently 14:52:34 # needed when this fixture is not parametrized but depends on a parametrized 14:52:34 # fixture. 14:52:34 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:52:34 14:52:34 # Check for (and return) cached value/exception. 14:52:34 if self.cached_result is not None: 14:52:34 request_cache_key = self.cache_key(request) 14:52:34 cache_key = self.cached_result[1] 14:52:34 try: 14:52:34 # Attempt to make a normal == check: this might fail for objects 14:52:34 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:52:34 cache_hit = bool(request_cache_key == cache_key) 14:52:34 except (ValueError, RuntimeError): 14:52:34 # If the comparison raises, use 'is' as fallback. 14:52:34 cache_hit = request_cache_key is cache_key 14:52:34 14:52:34 if cache_hit: 14:52:34 if self.cached_result[2] is not None: 14:52:34 exc, exc_tb = self.cached_result[2] 14:52:34 raise exc.with_traceback(exc_tb) 14:52:34 else: 14:52:34 return self.cached_result[0] 14:52:34 # We have a previous but differently parametrized fixture instance 14:52:34 # so we need to tear it down before creating a new one. 14:52:34 self.finish(request) 14:52:34 assert self.cached_result is None 14:52:34 14:52:34 # Add finalizer to requested fixtures we saved previously. 14:52:34 # We make sure to do this after checking for cached value to avoid 14:52:34 # adding our finalizer multiple times. (#12135) 14:52:34 finalizer = functools.partial(self.finish, request=request) 14:52:34 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:52:34 parent_fixture.addfinalizer(finalizer) 14:52:34 14:52:34 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:52:34 # which is executed last. 14:52:34 > assert not self._finalizers 14:52:34 ^^^^^^^^^^^^^^^^^^^^ 14:52:34 E AssertionError 14:52:34 14:52:34 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:52:34 =========================== short test summary info ============================ 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 14:52:34 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 14:52:34 35 errors in 106.39s (0:01:46) 14:52:34 tests71: FAIL ✖ in 1 minute 49.31 seconds 14:52:34 tests221: exit 1 (106.71 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh 2.2.1 pid=3869 14:52:35 tests221: FAIL ✖ in 1 minute 54.42 seconds 14:52:35 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-vanadium/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-vanadium/tests/test-requirements.txt 14:52:42 tests_hybrid: freeze> python -m pip freeze --all 14:52:43 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.1,cryptography==50.0.1,dict2xml==1.7.8,idna==3.19,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.7.0 14:52:43 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid 14:52:43 using environment variables from ./karaf221.env 14:52:43 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 14:54:23 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:54:33 ==================================== ERRORS ==================================== 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 14:54:33 14:54:33 cls = 14:54:33 14:54:33 @classmethod 14:54:33 def setUpClass(cls): 14:54:33 > cls.processes = test_utils.start_tpce() 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 14:54:33 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 def start_tpce(): 14:54:33 if 'NO_ODL_STARTUP' in os.environ: 14:54:33 print('No OpenDaylight instance to start!') 14:54:33 return [] 14:54:33 print('starting OpenDaylight...') 14:54:33 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:54:33 process = start_lighty() 14:54:33 else: 14:54:33 process = start_karaf() 14:54:33 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:54:33 print('OpenDaylight started !') 14:54:33 else: 14:54:33 print('OpenDaylight failed to start !') 14:54:33 shutdown_process(process) 14:54:33 for pid in process_list: 14:54:33 shutdown_process(pid) 14:54:33 > sys.exit(1) 14:54:33 E SystemExit: 1 14:54:33 14:54:33 transportpce_tests/common/test_utils.py:232: SystemExit 14:54:33 ---------------------------- Captured stdout setup ----------------------------- 14:54:33 starting OpenDaylight... 14:54:33 starting KARAF (karaf221) TransportPCE build... 14:54:33 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd6a3e0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02ac0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3ad4de7a0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd6bba0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd6bf60> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd6bba0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe023e0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24360> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3ae42d8a0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd6bf60> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03420> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24040> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3ae42d8a0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03880> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3ae42d8a0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24220> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03880> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3ae42d8a0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24220> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24220> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe00040> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe00040> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02660> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02de0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02ca0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03d80> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe036a0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03c40> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03600> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03740> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03d80> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02ca0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe00040> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03740> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe03880> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02660> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02b60> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe02de0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abd24400> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 14:54:33 14:54:33 cls = 14:54:33 func = . at 0x7fc3abe023e0> 14:54:33 when = 'setup' 14:54:33 reraise = (, ) 14:54:33 14:54:33 @classmethod 14:54:33 def from_call( 14:54:33 cls, 14:54:33 func: Callable[[], TResult], 14:54:33 when: Literal["collect", "setup", "call", "teardown"], 14:54:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:54:33 ) -> CallInfo[TResult]: 14:54:33 """Call func, wrapping the result in a CallInfo. 14:54:33 14:54:33 :param func: 14:54:33 The function to call. Called without arguments. 14:54:33 :type func: Callable[[], _pytest.runner.TResult] 14:54:33 :param when: 14:54:33 The phase in which the function is called. 14:54:33 :param reraise: 14:54:33 Exception or exceptions that shall propagate if raised by the 14:54:33 function, instead of being wrapped in the CallInfo. 14:54:33 """ 14:54:33 excinfo = None 14:54:33 instant = timing.Instant() 14:54:33 try: 14:54:33 > result: TResult | None = func() 14:54:33 ^^^^^^ 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:54:33 lambda: runtest_hook(item=item, **kwds), 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:54:33 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:54:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:54:33 yield 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:54:33 return (yield) 14:54:33 ^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:54:33 item.session._setupstate.setup(item) 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:54:33 col.setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:54:33 super().setup() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:54:33 self._request._fillfixtures() 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:54:33 item.funcargs[argname] = self.getfixturevalue(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:54:33 fixturedef = self._get_active_fixturedef(argname) 14:54:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:54:33 fixturedef.execute(request=subrequest) 14:54:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:54:33 14:54:33 self = 14:54:33 request = > 14:54:33 14:54:33 def execute(self, request: SubRequest) -> FixtureValue: 14:54:33 """Return the value of this fixture, executing it if not cached.""" 14:54:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:54:33 # This needs to be done before checking if we have a cached value, since 14:54:33 # if a dependent fixture has their cache invalidated, e.g. due to 14:54:33 # parametrization, they finalize themselves and fixtures depending on it 14:54:33 # (which will likely include this fixture) setting `self.cached_result = None`. 14:54:33 # See #4871 14:54:33 requested_fixtures_that_should_finalize_us = [] 14:54:33 for argname in self.argnames: 14:54:33 fixturedef = request._get_active_fixturedef(argname) 14:54:33 # Saves requested fixtures in a list so we later can add our finalizer 14:54:33 # to them, ensuring that if a requested fixture gets torn down we get torn 14:54:33 # down first. This is generally handled by SetupState, but still currently 14:54:33 # needed when this fixture is not parametrized but depends on a parametrized 14:54:33 # fixture. 14:54:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:54:33 14:54:33 # Check for (and return) cached value/exception. 14:54:33 if self.cached_result is not None: 14:54:33 request_cache_key = self.cache_key(request) 14:54:33 cache_key = self.cached_result[1] 14:54:33 try: 14:54:33 # Attempt to make a normal == check: this might fail for objects 14:54:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:54:33 cache_hit = bool(request_cache_key == cache_key) 14:54:33 except (ValueError, RuntimeError): 14:54:33 # If the comparison raises, use 'is' as fallback. 14:54:33 cache_hit = request_cache_key is cache_key 14:54:33 14:54:33 if cache_hit: 14:54:33 if self.cached_result[2] is not None: 14:54:33 exc, exc_tb = self.cached_result[2] 14:54:33 raise exc.with_traceback(exc_tb) 14:54:33 else: 14:54:33 return self.cached_result[0] 14:54:33 # We have a previous but differently parametrized fixture instance 14:54:33 # so we need to tear it down before creating a new one. 14:54:33 self.finish(request) 14:54:33 assert self.cached_result is None 14:54:33 14:54:33 # Add finalizer to requested fixtures we saved previously. 14:54:33 # We make sure to do this after checking for cached value to avoid 14:54:33 # adding our finalizer multiple times. (#12135) 14:54:33 finalizer = functools.partial(self.finish, request=request) 14:54:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:54:33 parent_fixture.addfinalizer(finalizer) 14:54:33 14:54:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:54:33 # which is executed last. 14:54:33 > assert not self._finalizers 14:54:33 ^^^^^^^^^^^^^^^^^^^^ 14:54:33 E AssertionError 14:54:33 14:54:33 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:54:33 =========================== short test summary info ============================ 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 14:54:33 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 14:54:33 51 errors in 109.76s (0:01:49) 14:54:33 tests_hybrid: exit 1 (110.05 seconds) /w/workspace/transportpce-tox-verify-vanadium/tests> ./launch_tests.sh hybrid pid=3992 14:54:33 buildcontroller: FAIL code 127 (13.55=setup[7.87]+cmd[5.68] seconds) 14:54:33 sims: OK (11.36=setup[8.62]+cmd[2.74] seconds) 14:54:33 build_karaf_tests121: FAIL code 127 (7.70=setup[7.70]+cmd[0.00] seconds) 14:54:33 testsPCE: FAIL code 1 (177.83=setup[53.65]+cmd[124.18] seconds) 14:54:33 tests121: FAIL code 1 (113.36=setup[9.05]+cmd[104.31] seconds) 14:54:33 build_karaf_tests221: FAIL code 127 (8.55=setup[8.53]+cmd[0.02] seconds) 14:54:33 tests_tapi: FAIL code 1 (119.09=setup[8.94]+cmd[110.15] seconds) 14:54:33 tests221: FAIL code 1 (114.42=setup[7.71]+cmd[106.71] seconds) 14:54:33 build_karaf_tests71: FAIL code 127 (7.16=setup[7.16]+cmd[0.00] seconds) 14:54:33 tests71: FAIL code 1 (109.31=setup[6.68]+cmd[102.64] seconds) 14:54:33 build_karaf_tests190: FAIL code 127 (6.90=setup[6.89]+cmd[0.01] seconds) 14:54:33 tests190: FAIL code 1 (111.19=setup[8.94]+cmd[102.25] seconds) 14:54:33 tests_hybrid: FAIL code 1 (118.43=setup[8.38]+cmd[110.05] seconds) 14:54:33 buildlighty: FAIL code 9 (7.13=setup[7.12]+cmd[0.01] seconds) 14:54:33 docs: OK (23.28=setup[16.34]+cmd[6.95] seconds) 14:54:33 docs-linkcheck: OK (28.81=setup[16.53]+cmd[12.28] seconds) 14:54:33 checkbashisms: OK (3.13=setup[1.91]+cmd[0.00,0.04,1.17] seconds) 14:54:33 pre-commit: OK (56.55=setup[9.45]+cmd[0.00,0.00,40.71,6.39] seconds) 14:54:33 pylint: OK (23.54=setup[3.31]+cmd[20.23] seconds) 14:54:33 evaluation failed :( (573.81 seconds) 14:54:33 + tox_status=1 14:54:33 + echo '---> Completed tox runs' 14:54:33 ---> Completed tox runs 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/build_karaf_tests121/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=build_karaf_tests121 14:54:33 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests121 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/build_karaf_tests190/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=build_karaf_tests190 14:54:33 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests190 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/build_karaf_tests221/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=build_karaf_tests221 14:54:33 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests221 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/build_karaf_tests71/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=build_karaf_tests71 14:54:33 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/build_karaf_tests71 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/buildcontroller/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=buildcontroller 14:54:33 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildcontroller 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/buildlighty/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=buildlighty 14:54:33 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/buildlighty 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/checkbashisms/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=checkbashisms 14:54:33 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/checkbashisms 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/docs-linkcheck/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=docs-linkcheck 14:54:33 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs-linkcheck 14:54:33 + for i in .tox/*/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 ++ echo .tox/docs/log 14:54:33 + tox_env=docs 14:54:33 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/docs 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/pre-commit/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=pre-commit 14:54:33 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pre-commit 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/pylint/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=pylint 14:54:33 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/pylint 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/sims/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=sims 14:54:33 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/sims 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/tests121/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=tests121 14:54:33 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests121 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/tests190/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=tests190 14:54:33 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests190 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/tests221/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=tests221 14:54:33 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests221 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/tests71/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=tests71 14:54:33 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests71 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/testsPCE/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=testsPCE 14:54:33 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/testsPCE 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/tests_hybrid/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=tests_hybrid 14:54:33 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_hybrid 14:54:33 + for i in .tox/*/log 14:54:33 ++ echo .tox/tests_tapi/log 14:54:33 ++ awk -F/ '{print $2}' 14:54:33 + tox_env=tests_tapi 14:54:33 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-vanadium/archives/tox/tests_tapi 14:54:33 + DOC_DIR=docs/_build/html 14:54:33 + [[ -d docs/_build/html ]] 14:54:33 + echo '---> Archiving generated docs' 14:54:33 ---> Archiving generated docs 14:54:33 + mv docs/_build/html /w/workspace/transportpce-tox-verify-vanadium/archives/docs 14:54:33 + echo '---> tox-run.sh ends' 14:54:33 ---> tox-run.sh ends 14:54:33 + test 1 -eq 0 14:54:33 + exit 1 14:54:33 ++ '[' 1 = 1 ']' 14:54:33 ++ '[' -x /usr/bin/clear_console ']' 14:54:33 ++ /usr/bin/clear_console -q 14:54:33 Build step 'Execute shell' marked build as failure 14:54:33 $ ssh-agent -k 14:54:33 unset SSH_AUTH_SOCK; 14:54:33 unset SSH_AGENT_PID; 14:54:33 echo Agent pid 1558 killed; 14:54:33 [ssh-agent] Stopped. 14:54:34 [PostBuildScript] - [INFO] Executing post build scripts. 14:54:34 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins11736278131287871668.sh 14:54:34 ---> sysstat.sh 14:54:34 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins16662031032188876436.sh 14:54:34 ---> package-listing.sh 14:54:34 ++ facter osfamily 14:54:34 ++ tr '[:upper:]' '[:lower:]' 14:54:34 + OS_FAMILY=debian 14:54:34 + workspace=/w/workspace/transportpce-tox-verify-vanadium 14:54:34 + START_PACKAGES=/tmp/packages_start.txt 14:54:34 + END_PACKAGES=/tmp/packages_end.txt 14:54:34 + DIFF_PACKAGES=/tmp/packages_diff.txt 14:54:34 + PACKAGES=/tmp/packages_start.txt 14:54:34 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:54:34 + PACKAGES=/tmp/packages_end.txt 14:54:34 + case "${OS_FAMILY}" in 14:54:34 + dpkg -l 14:54:34 + grep '^ii' 14:54:35 + '[' -f /tmp/packages_start.txt ']' 14:54:35 + '[' -f /tmp/packages_end.txt ']' 14:54:35 + diff /tmp/packages_start.txt /tmp/packages_end.txt 14:54:35 + '[' /w/workspace/transportpce-tox-verify-vanadium ']' 14:54:35 + mkdir -p /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:54:35 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-vanadium/archives/ 14:54:35 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins10008424510625075438.sh 14:54:35 ---> capture-instance-metadata.sh 14:54:35 Setup pyenv: 14:54:35 system 14:54:35 3.8.20 14:54:35 3.9.20 14:54:35 3.10.15 14:54:35 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:35 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3CtA from file:/tmp/.os_lf_venv 14:54:35 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:37 lf-activate-venv(): INFO: Installing additional packages: lftools 14:54:47 lf-activate-venv(): INFO: Adding /tmp/venv-3CtA/bin to PATH 14:54:47 INFO: Running in OpenStack, capturing instance metadata 14:54:47 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins2080161007676168083.sh 14:54:47 provisioning config files... 14:54:47 Could not find credentials [logs] for transportpce-tox-verify-vanadium #24 14:54:47 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-vanadium@tmp/config1894281962931618781tmp 14:54:47 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 14:54:47 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 14:54:47 provisioning config files... 14:54:48 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 14:54:48 [EnvInject] - Injecting environment variables from a build step. 14:54:48 [EnvInject] - Injecting as environment variables the properties content 14:54:48 SERVER_ID=logs 14:54:48 14:54:48 [EnvInject] - Variables injected successfully. 14:54:48 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins14354423404592370206.sh 14:54:48 ---> create-netrc.sh 14:54:48 WARN: Log server credential not found. 14:54:48 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins12120498046358413442.sh 14:54:48 ---> python-tools-install.sh 14:54:48 Setup pyenv: 14:54:48 system 14:54:48 3.8.20 14:54:48 3.9.20 14:54:48 3.10.15 14:54:48 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:54:48 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3CtA from file:/tmp/.os_lf_venv 14:54:48 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:54:50 lf-activate-venv(): INFO: Installing additional packages: lftools 14:55:08 lf-activate-venv(): INFO: Adding /tmp/venv-3CtA/bin to PATH 14:55:08 [transportpce-tox-verify-vanadium] $ /bin/sh /tmp/jenkins17478812748366412241.sh 14:55:08 ---> uv-install.sh 14:55:08 uv 0.12.9 is already installed 14:55:08 uvx 0.12.9 (x86_64-unknown-linux-gnu) 14:55:08 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins11039905565540212979.sh 14:55:08 ---> sudo-logs.sh 14:55:08 Archiving 'sudo' log.. 14:55:09 [transportpce-tox-verify-vanadium] $ /bin/bash /tmp/jenkins10334808071141026552.sh 14:55:09 ---> job-cost.sh 14:55:09 INFO: Activating Python virtual environment... 14:55:09 Setup pyenv: 14:55:09 system 14:55:09 3.8.20 14:55:09 3.9.20 14:55:09 3.10.15 14:55:09 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:55:09 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3CtA from file:/tmp/.os_lf_venv 14:55:09 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:55:11 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 14:55:17 lf-activate-venv(): INFO: Adding /tmp/venv-3CtA/bin to PATH 14:55:17 INFO: No stack-cost file found 14:55:17 INFO: Instance uptime: 769s 14:55:17 INFO: Fetching instance metadata (attempt 1 of 3)... 14:55:17 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 14:55:17 INFO: Successfully fetched instance metadata 14:55:17 INFO: Instance type: v3-standard-4 14:55:17 INFO: Retrieving pricing info for: v3-standard-4 14:55:17 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 14:55:17 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=769 14:55:17 INFO: Successfully fetched Vexxhost pricing API 14:55:17 INFO: Retrieved cost: 0.11 14:55:18 INFO: Retrieved resource: v3-standard-4 14:55:18 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-vanadium/archives/cost 14:55:18 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-vanadium/archives/cost.csv 14:55:18 INFO: Successfully archived job cost data 14:55:18 DEBUG: Cost data: transportpce-tox-verify-vanadium,24,2026-09-04 14:55:18,v3-standard-4,769,0.11,0.00,FAILURE 14:55:18 [transportpce-tox-verify-vanadium] $ /bin/bash -l /tmp/jenkins4189441044190485264.sh 14:55:18 ---> logs-deploy.sh 14:55:18 Setup pyenv: 14:55:18 system 14:55:18 3.8.20 14:55:18 3.9.20 14:55:18 3.10.15 14:55:18 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-vanadium/.python-version) 14:55:18 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-3CtA from file:/tmp/.os_lf_venv 14:55:18 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:55:20 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 14:55:29 lf-activate-venv(): INFO: Adding /tmp/venv-3CtA/bin to PATH 14:55:29 WARNING: Nexus logging server not set 14:55:29 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-vanadium/24/ 14:55:29 INFO: archiving logs to S3 14:55:30 ---> uname -a: 14:55:30 Linux prd-ubuntu2204-docker-4c-16g-20 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 14:55:30 14:55:30 14:55:30 ---> lscpu: 14:55:30 Architecture: x86_64 14:55:30 CPU op-mode(s): 32-bit, 64-bit 14:55:30 Address sizes: 40 bits physical, 48 bits virtual 14:55:30 Byte Order: Little Endian 14:55:30 CPU(s): 4 14:55:30 On-line CPU(s) list: 0-3 14:55:30 Vendor ID: AuthenticAMD 14:55:30 Model name: AMD EPYC-Rome Processor 14:55:30 CPU family: 23 14:55:30 Model: 49 14:55:30 Thread(s) per core: 1 14:55:30 Core(s) per socket: 1 14:55:30 Socket(s): 4 14:55:30 Stepping: 0 14:55:30 BogoMIPS: 5599.99 14:55:30 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 14:55:30 Virtualization: AMD-V 14:55:30 Hypervisor vendor: KVM 14:55:30 Virtualization type: full 14:55:30 L1d cache: 128 KiB (4 instances) 14:55:30 L1i cache: 128 KiB (4 instances) 14:55:30 L2 cache: 2 MiB (4 instances) 14:55:30 L3 cache: 64 MiB (4 instances) 14:55:30 NUMA node(s): 1 14:55:30 NUMA node0 CPU(s): 0-3 14:55:30 Vulnerability Gather data sampling: Not affected 14:55:30 Vulnerability Indirect target selection: Not affected 14:55:30 Vulnerability Itlb multihit: Not affected 14:55:30 Vulnerability L1tf: Not affected 14:55:30 Vulnerability Mds: Not affected 14:55:30 Vulnerability Meltdown: Not affected 14:55:30 Vulnerability Mmio stale data: Not affected 14:55:30 Vulnerability Reg file data sampling: Not affected 14:55:30 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 14:55:30 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 14:55:30 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 14:55:30 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 14:55:30 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 14:55:30 Vulnerability Srbds: Not affected 14:55:30 Vulnerability Tsa: Not affected 14:55:30 Vulnerability Tsx async abort: Not affected 14:55:30 Vulnerability Vmscape: Not affected 14:55:30 14:55:30 14:55:30 ---> nproc: 14:55:30 4 14:55:30 14:55:30 14:55:30 ---> df -h: 14:55:30 Filesystem Size Used Avail Use% Mounted on 14:55:30 tmpfs 1.6G 1.1M 1.6G 1% /run 14:55:30 /dev/vda1 78G 11G 67G 14% / 14:55:30 tmpfs 7.9G 0 7.9G 0% /dev/shm 14:55:30 tmpfs 5.0M 0 5.0M 0% /run/lock 14:55:30 /dev/vda15 105M 6.1M 99M 6% /boot/efi 14:55:30 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 14:55:30 14:55:30 14:55:30 ---> free -m: 14:55:30 total used free shared buff/cache available 14:55:30 Mem: 15989 713 9988 4 5287 14932 14:55:30 Swap: 1023 0 1023 14:55:30 14:55:30 14:55:30 ---> ip addr: 14:55:30 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 14:55:30 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 14:55:30 inet 127.0.0.1/8 scope host lo 14:55:30 valid_lft forever preferred_lft forever 14:55:30 inet6 ::1/128 scope host 14:55:30 valid_lft forever preferred_lft forever 14:55:30 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 14:55:30 link/ether fa:16:3e:13:56:6e brd ff:ff:ff:ff:ff:ff 14:55:30 altname enp0s3 14:55:30 inet 10.30.170.5/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 14:55:30 valid_lft 85626sec preferred_lft 85626sec 14:55:30 inet6 fe80::f816:3eff:fe13:566e/64 scope link 14:55:30 valid_lft forever preferred_lft forever 14:55:30 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 14:55:30 link/ether 3e:2a:be:e7:99:f5 brd ff:ff:ff:ff:ff:ff 14:55:30 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 14:55:30 valid_lft forever preferred_lft forever 14:55:30 14:55:30 14:55:30 ---> sar -b -r -n DEV: 14:55:30 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-20) 09/04/26 _x86_64_ (4 CPU) 14:55:30 14:55:30 14:42:39 LINUX RESTART (4 CPU) 14:55:30 14:55:30 14:55:30 ---> sar -P ALL: 14:55:30 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-20) 09/04/26 _x86_64_ (4 CPU) 14:55:30 14:55:30 14:42:39 LINUX RESTART (4 CPU) 14:55:30 14:55:30 14:55:30